kill -s expects the signal name without SIG

The previous lxc-shutdown change replaced 'kill SIG<name>' by
'kill -s SIG<name>'. Although this works with busybox where it was tested,
this doesn't actually work with all kill implementations. Some requiring just
the signal name without the prefix.

This changes "-s SIG<name>" by just "-s <name>". Tested with busybox and
standard kill.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2013-01-02 13:47:18 -05:00
parent 670c6ab8ca
commit 4199da3061

View File

@ -118,10 +118,10 @@ if [ "$pid" = "-1" ]; then
fi
if [ $reboot -eq 1 ]; then
kill -s SIGINT $pid
kill -s INT $pid
exit 0
else
kill -s SIGPWR $pid
kill -s PWR $pid
fi
if [ $dowait -eq 0 ]; then