> 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...
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
> 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