On Fri, 2005-01-21 at 21:22, Carlos E. R. wrote:
The Thursday 2005-01-20 at 10:22 +0200, Pieter Botha wrote:
The thing is that as soon as I get a display (run level 5 is entered), one of the relays are opened. I have set the script to run on all run levels thus it does run on runlevel 5, it just runs before something else. What could the "something else" be? Where can I see in what order stuff are started for runlevel 5?
read: SUSE LINUX Administration Guide Chapter 12. The SUSE LINUX Boot Concept
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?
-- Cheers, Carlos Robinson
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. -- 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