Re: [systemd-devel] System halt on service stop

2015-01-08 Thread Lennart Poettering
On Wed, 07.01.15 19:00, Albert Strasheim (full...@gmail.com) wrote: > Hello all > > I'd like to find a clean way to halt a systemd system (actually, a > Docker container) when a "main" service stops (not just on failure). > > I tried Conflicts=systemd-halt.service and calling shutdown from > Exe

[systemd-devel] System halt on service stop

2015-01-07 Thread Albert Strasheim
Hello all I'd like to find a clean way to halt a systemd system (actually, a Docker container) when a "main" service stops (not just on failure). I tried Conflicts=systemd-halt.service and calling shutdown from ExecStopPost= but it seems both cause problems, since I end up with a "stop job" for m