sendsignals: fix appearance of shutdown messages and script cleanup
This commit is contained in:
parent
24c9810503
commit
9cf0a4c96c
@ -4,6 +4,7 @@
|
|||||||
# Based on sendsignals script from LFS-3.1 and earlier.
|
# Based on sendsignals script from LFS-3.1 and earlier.
|
||||||
# Rewritten by Gerard Beekmans <gerard@linuxfromscratch.org>
|
# Rewritten by Gerard Beekmans <gerard@linuxfromscratch.org>
|
||||||
# Support for 2.6.x kernels by Davide Madrisan <davide.madrisan@gmail.com>
|
# Support for 2.6.x kernels by Davide Madrisan <davide.madrisan@gmail.com>
|
||||||
|
# Also modified by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
|
||||||
. /etc/sysconfig/rc
|
. /etc/sysconfig/rc
|
||||||
. $rc_functions
|
. $rc_functions
|
||||||
@ -14,18 +15,15 @@ case "${1}" in
|
|||||||
killall5 -15
|
killall5 -15
|
||||||
error_value=$?
|
error_value=$?
|
||||||
[ "$error_value" = 0 ] && echo_success || echo_failure
|
[ "$error_value" = 0 ] && echo_success || echo_failure
|
||||||
|
echo
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
echo -n "Sending all processes the KILL signal: "
|
echo -n "Sending all processes the KILL signal: "
|
||||||
killall5 -9
|
killall5 -9
|
||||||
error_value=$?
|
error_value=$?
|
||||||
[ "$error_value" = 0 ] && echo_success || echo_failure
|
[ "$error_value" = 0 ] && echo_success || echo_failure
|
||||||
|
echo
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
#echo -n "Removing all unused modules: "
|
|
||||||
#modprobe -r
|
|
||||||
#error_value=$?
|
|
||||||
#echo
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user