diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-15 13:27:49 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-15 13:28:15 -0500 |
commit | 50608b54ed98acb54fec5fe3323909ea684d3af9 (patch) | |
tree | 5395599e90ceec0f0b6660073222a4a524b1b7ef | |
parent | b0a077a35f85e266fdb82a245dcbda18664a8567 (diff) |
rc-cgroup.sh: fix signal names
The "SIG" prefix on signal names passed to kill -s isn't portable.
-rw-r--r-- | sh/rc-cgroup.sh.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 4b713594..3c7558cd 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -204,13 +204,13 @@ cgroup_cleanup() local pids pids="$(cgroup_get_pids)" if [ -n "${pids}" ]; then - kill -s "${stopsig:-SIGTERM}" ${pids} 2> /dev/null - kill -s SIGCONT ${pids} 2> /dev/null + kill -s "${stopsig:-TERM}" ${pids} 2> /dev/null + kill -s CONT ${pids} 2> /dev/null yesno "${rc_send_sighup:-no}" && - kill -s SIGHUP ${pids} 2> /dev/null + kill -s HUP ${pids} 2> /dev/null sleep "${rc_timeout_stopsec:-90}" yesno "${rc_send_sigkill:-yes}" && - kill -s SIGKILL ${pids} 2> /dev/null + kill -s KILL ${pids} 2> /dev/null fi eend 0 } |