rc-cgroup.sh: fix signal names

The "SIG" prefix on signal names passed to kill -s isn't portable.
This commit is contained in:
William Hubbs 2017-09-15 13:27:49 -05:00
parent b0a077a35f
commit 50608b54ed

View File

@ -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
}