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,20 +15,17 @@ 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
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: ${0} {stop}"
|
echo "Usage: ${0} {stop}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user