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

Benno Fünfstück benno.fuenfstueck at gmail.com
Fri Jul 28 12:00:02 UTC 2017


Thanks, I'll check it out.

Mantas Mikulėnas <grawity at gmail.com> schrieb am Fr., 28. Juli 2017, 10:52:

> 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/60273859/attachment.html>


More information about the systemd-devel mailing list