Merge pull request #2515 from eyz/open-vm-tools-poweroff

added support for guest shut down in pkg/open-vm-tools
This commit is contained in:
Rolf Neugebauer 2017-09-17 22:02:50 +01:00 committed by GitHub
commit cf2d88bb83
2 changed files with 7 additions and 0 deletions

View File

@ -13,4 +13,7 @@ ENTRYPOINT []
CMD []
WORKDIR /
COPY --from=mirror /out/ /
COPY scripts /etc/vmware-tools/scripts
CMD ["/usr/bin/vmtoolsd"]
LABEL org.mobyproject.config='{"pid": "host", "capabilities": ["CAP_SYS_BOOT"]}'

View File

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