[systemd-devel] Debug hanging unit stop on shutdown?

Mantas Mikulėnas grawity at gmail.com
Fri Jul 28 08:52:31 UTC 2017


On Thu, Jul 27, 2017 at 10:33 PM, Benno Fünfstück <
benno.fuenfstueck at gmail.com> wrote:

> Hi,
>
> when shutting down my system, I sometimes get a "Stopping ..." from
> systemd, where it waits 90 seconds before it kills the affected session /
> unit / scope /  ... . Is there any way to debug this live, without enabling
> persistent journal and hoping that the journal has enough information?
>
> Ideal would be a way to "interrupt" shutdown in this case and be able to
> correct the mistake / fix the error.
>

Start debug-shell.service (or boot with "systemd.debug-shell"). During
shutdown, switch to tty9 and use `systemctl list-jobs`, then `systemctl
cancel` to flush all pending jobs.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170728/6ade14ef/attachment.html>


More information about the systemd-devel mailing list