On Tue, 2005-01-25 at 21:44, Carlos E. R. wrote:
The Saturday 2005-01-22 at 19:54 -0500, Ken Schneider wrote:
Short explanation: the order of execution of runlevel 5 scripts is determined by the numerals of the links in "/etc/init.d/rc5.d/S*". For example, S18cron will execute before S21splash_late and after S17apache2. See it?
The newer init scripts also incorporate the following (portmap example):
# System startup script for the RPC program number mapper # ### BEGIN INIT INFO # Provides: portmap # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 # Description: DARPA port to RPC program number mapper ### END INIT INFO
So not only is the the S# used but also the "# Required-Start:" line. In the portmap example the network and syslog init scripts need to be run first.
No, that is not so. The "Required-*" tokens are used by innserv or chkconfig scripts (or yast) to create the links with the appropiate numerical order. If you don't believe me, just analyse how the master script "/etc/init.d/rc" works: it calls all the runlevel scripts in the appropiate order. It doesn't check the tokens, that's something else's job.
-- Cheers, Carlos Robinson
I sit corrected. Who says you can't teach an old dog new tricks. :-) -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge