On Thu, 09.03.17 13:00, Sergei Franco ([email protected]) wrote:
> Hello!
>
> Thank you very much for pointing out the "After" vs "Before", as in for
> ExecStop to run Before filesytem is unmounted it must be configured as
> After :).
> This fixes the Ubuntu unattended upgrades unit that prevents from hanging.
>
> What I would like to address for future problems like this is how to have a
> global timeout where systemd gives up and reboots anyway (regardless the
> state of the units)? Even if it is a dirty reboot.
We have that in place. It's configured to 30min however, in order to
be friendly to super-slow databases.
See "systemctl cat reboot.target":
…
JobTimeoutSec=30min
JobTimeoutAction=reboot-force
…
Lennart
--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel