[systemd-devel] Cleanest way to halt a VM after a service has stopped

Filipe Brandenburger filbranden at google.com
Mon Feb 26 23:54:56 UTC 2018


Hi,

I found it's possible to halt a VM after a service has stopped by
using something like this:

ExecStopPost=/sbin/halt -p

Is this the cleanest approach? Or would anyone have a better
recommendation (perhaps using systemd-halt.service or similar)?

Thanks!
Filipe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4851 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180226/ed4887b3/attachment.bin>


More information about the systemd-devel mailing list