[clue] [Tech] Red Hat init scripts

Dan Kulinski daniel at kulinski.net
Wed Mar 16 12:34:41 MDT 2011


The symbolic link names are related to how and when a script is started or
stopped.  SNNname in rcY.d means that the script linked to should be started
a priority NN in runlevel Y.  In this fashion you can control the
dependencies of the particular script by ensuring that other scripts have
run before it.

The symbolic links with beginning with a K are executed when leaving that
runlevel.  So for all run levels you have the "S" script linked you should
have an opposing "K" script.

Finally you must have both the start case and the stop case in the
/etc/init.d/script.sh so the RedHat init manager can call those specific
functions.  Also, if available chkconfig can handle the management of the
symbolic links in the /etc/rcN.d directories if the header of the script is
well formed.

Dan Kulinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20110316/52f07cd6/attachment.html 


More information about the clue mailing list