diff options
Diffstat (limited to 'bootscripts/contrib/lsb-v3/init.d')
-rw-r--r-- | bootscripts/contrib/lsb-v3/init.d/sendsignals | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/sendsignals b/bootscripts/contrib/lsb-v3/init.d/sendsignals index 754e1cb1f..ce42c87ef 100644 --- a/bootscripts/contrib/lsb-v3/init.d/sendsignals +++ b/bootscripts/contrib/lsb-v3/init.d/sendsignals @@ -21,7 +21,10 @@ case "${1}" in message="Sending all processes the TERM signal..." killall5 -15 error_value=${?} - + # Account for successful return value of 2 + if [ ${error_value} == 2 ] + error_value="0" + fi sleep 3 (exit ${error_value}) @@ -30,6 +33,10 @@ case "${1}" in message="Sending all processes the KILL signal..." killall5 -9 error_value=${?} + # Account for successful return value of 2 + if [ ${error_value} == 2 ] + error_value="0" + fi sleep 3 |