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 > ExecStopPost= but it seems both cause problems, since I end up with a > "stop job" for my service that takes 90 seconds to time out, instead > of taking down the system immediately.
Try: "ExecStopPost=/usr/bin/systemctl --no-block poweroff" Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel