When the system transitions from single user mode to multi-user mode, /sbin/init (process #1) reads /etc/inittab, and executes the lines appropriate for the run level it is transitioning to: You will see a line in /etc/inittab that looks like: l5:5:wait:/etc/init.d/rc 5 The line is id #l5, that is a lower case L, but it does not matter. Init will start the process and wait for its completion. Init will execute the script:/etc/init.d/rc and pass 5 in as the first parameter. The script, /etc/init.d/rc will execute the scripts (eg. the symbolic links) in /etc/init.d/rc5.d starting with those that begin with an upper case K (meaning kill) then those beginning with an upper case S (meaning start). There is a bit more that rc does, but you can read the script. Red Hat does essentially the same thing. On 30 Aug 2002 at 14:18, Aliaga, Alberto wrote:
Hello list,
I have always thought that the stop scripts linked in /etc/init.d/rc<x>.d as "/etc/init.d/rc3.d/S01httpd" are called by init.d when the system enter in the corresponding runlevel ( in example, when system switchs to runlevel 3). Although I have been revising the man documentation about init.d in a Suse 7.3 and I find the next:
"....There are two kinds of symbolic link: start links, which are called when entering a run level, and stop links, which are called when leaving a run level......"
Does anyone clear up me this subject ?. I think that in Red Hat distributions, the stop scripts in a certain runlevel are called when system enter in that runlevel.
Thank you in advantage
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/