linuxkit/pkg/open-vm-tools/scripts/poweroff-vm-default.d/poweroff.sh
Isaac Rodman 38452aa742 added poweroff.sh for pkg/open-vm-tools to allow shutdown from hypervisor
Signed-off-by: Isaac Rodman <isaac@eyz.us>
2017-09-16 10:39:23 -07:00

5 lines
126 B
Bash
Executable File

#!/bin/sh
# send SIGTERM to the init system (PID 1), which causes a clean VM host-initiated shutdown
kill -s SIGTERM 1
exit 0