On Mo, 26.02.18 15:54, Filipe Brandenburger ([email protected]) wrote:

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

There's FailureAction= and SuccessAction=. Set both to "poweroff". See
systemd.unit(5) for details.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to