[CentOS] best way to start and shutdown programs in CentOS?

sheraz naz sheraznaz at yahoo.com
Wed Nov 24 12:28:31 EST 2010

> From: killscript <killscript at gmail.com>

> Sorry for the stupid question here, but does the /etc/initd./scriptname 
> file "know" about these symlinks because of a particular comment in there?

> Where and how is the best way to make these symlinks once you have the 
> "correct" file configuration.

Les already answered this
> There is a convention for comments in the scripts so that 'checkconfig program 
>on' can make
> the links for you.  Look through some of the other scripts to see how they 

You need to add a line in your script, something like this...(starts with #).
# chkconfig: 2345 90 05

Add the program to chkconfig, and simply turn it "on" for runlevel you want.
Chkconfig will manage the symlinks for you. 

CentOS mailing list
CentOS at centos.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20101124/fa5086db/attachment.html 

More information about the CentOS mailing list