Commit 4199da30 by Stéphane Graber

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: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 670c6ab8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment