--- /etc/rc.d/rc.old 2004-10-31 14:08:15.000000000 -0600 +++ /etc/rc.d/rc 2005-07-26 10:34:50.000000000 -0500 @@ -43,10 +43,12 @@ # Get first argument. Set new runlevel to this argument. [ -n "$argv1" ] && runlevel="$argv1" +# First, run the KILL scripts. +if [ -f /etc/rc.d/stop$runlevel.mk ]; then + make -f /etc/rc.d/runlevel.mk -j -k RUNLEVEL=$runlevel JOB=stop +else # Is there an rc directory for this new runlevel? [ -d /etc/rc$runlevel.d ] || exit 0 - -# First, run the KILL scripts. for i in /etc/rc$runlevel.d/K* ; do check_runlevel "$i" || continue @@ -62,8 +64,14 @@ action $"Stopping $subsys: " $i stop fi done +fi # Now run the START scripts. +if [ -f /etc/rc.d/start$runlevel.mk -a -n /var/run/confirm ]; then + make -f /etc/rc.d/runlevel.mk -j -k RUNLEVEL=$runlevel JOB=start +else +# Is there an rc directory for this new runlevel? +[ -d /etc/rc$runlevel.d ] || exit 0 for i in /etc/rc$runlevel.d/S* ; do check_runlevel "$i" || continue @@ -91,6 +99,7 @@ action $"Starting $subsys: " $i start fi done +fi rm -f /var/run/confirm if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then /usr/bin/rhgb-client --quit