rc-cgroup.sh: fix signal names
The "SIG" prefix on signal names passed to kill -s isn't portable.
This commit is contained in:
parent
b0a077a35f
commit
50608b54ed
@ -204,13 +204,13 @@ cgroup_cleanup()
|
|||||||
local pids
|
local pids
|
||||||
pids="$(cgroup_get_pids)"
|
pids="$(cgroup_get_pids)"
|
||||||
if [ -n "${pids}" ]; then
|
if [ -n "${pids}" ]; then
|
||||||
kill -s "${stopsig:-SIGTERM}" ${pids} 2> /dev/null
|
kill -s "${stopsig:-TERM}" ${pids} 2> /dev/null
|
||||||
kill -s SIGCONT ${pids} 2> /dev/null
|
kill -s CONT ${pids} 2> /dev/null
|
||||||
yesno "${rc_send_sighup:-no}" &&
|
yesno "${rc_send_sighup:-no}" &&
|
||||||
kill -s SIGHUP ${pids} 2> /dev/null
|
kill -s HUP ${pids} 2> /dev/null
|
||||||
sleep "${rc_timeout_stopsec:-90}"
|
sleep "${rc_timeout_stopsec:-90}"
|
||||||
yesno "${rc_send_sigkill:-yes}" &&
|
yesno "${rc_send_sigkill:-yes}" &&
|
||||||
kill -s SIGKILL ${pids} 2> /dev/null
|
kill -s KILL ${pids} 2> /dev/null
|
||||||
fi
|
fi
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user