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