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. What is the right way to achieve this? [Unit] Description=sleeper [Service] ExecStart=/bin/sleep 10 ExecStopPost=/sbin/shutdown -h now [Install] WantedBy=default.target Cheers Albert _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel