mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-14 18:08:49 +00:00
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:
parent
670c6ab8ca
commit
4199da3061
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user