|
@ -30,21 +30,7 @@ fi |
|
|
|
|
|
|
|
|
echo "RC: Enter runlevel $RUNLEVEL ..." |
|
|
echo "RC: Enter runlevel $RUNLEVEL ..." |
|
|
|
|
|
|
|
|
if [ $RUNLEVEL = S ] |
|
|
|
|
|
then |
|
|
|
|
|
# |
|
|
|
|
|
# Kill all processes |
|
|
|
|
|
# |
|
|
|
|
|
echo "Sending all processes a SIGTERM (15) ..." |
|
|
|
|
|
killall5 -15 |
|
|
|
|
|
sleep 5 |
|
|
|
|
|
echo "Sending all processes a 2nd SIGTERM (15) ..." |
|
|
|
|
|
killall5 -15 |
|
|
|
|
|
sleep 3 |
|
|
|
|
|
echo "Sending all processes a SIGKILL (9) ..." |
|
|
|
|
|
killall5 -9 |
|
|
|
|
|
sleep 3 |
|
|
|
|
|
elif [ $RUNLEVEL != 0 -a $RUNLEVEL != 6 ] |
|
|
|
|
|
|
|
|
if [ $RUNLEVEL != 0 -a $RUNLEVEL != 6 -a $RUNLEVEL != S ] |
|
|
then |
|
|
then |
|
|
# |
|
|
# |
|
|
# run the START scripts of the current (new) runlevel |
|
|
# run the START scripts of the current (new) runlevel |
|
|