Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Configuration > Issue <<  258 of 606 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4407
Last update: 07-07-05
Issue:
What is an initscript service and how do I start and stop it?
Resolution:

Linux has several methods for running programs automatically, without direct input from a user. One of these methods is the Sys5 initscripts. Programs started by these initscripts are called initscript services or simply services.

Every initscript service has a name associated with it. You can get a list of the services installed on a system using the chkconfig command:

chkconfig --list

An initscript service can be setup to run, or not run, automatically when the system is booted:

chkconfig <service-name> on

will cause the service to start when the system is booted and

chkconfig <service-name> off

will cause the service to not be started when the system is booted.

The chkconfig command does not immediately start or stop a service, it only changes what happens to the service at the next reboot. To immediately start, stop, or check the current status of a service, use the service command:

   service <service-name> start
   service <service-name> stop
   service <service-name> status

For more information on the chkconfig command, see the chkconfig man page. For more information on SYS5 initscripts in general, see the documentation included in the initscripts RPM.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Configuration > Issue <<   258  of  606  >>