Re: best way to start and shutdown programs in CentOS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> From: killscript <killscript@xxxxxxxxx>
> 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 work.

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.

Thanks
Sheraz
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux