You can run:<div><br></div><div>journalctl -b-1 -r</div><div><br></div><div>This will show the logs from the last boot (-b-1) in reverse (-r). You can then scroll down a bit and see what services didn't stop on time. </div><div><br></div><div>In addition, during shutdown you can press Ctrl+Alt+Del 8 times within 2 seconds (much easier than it sounds) in order to force the system off. </div><div><br></div><div>Side note: if you're using any Flatpak apps, I've noticed that flatpak-spawn can prevent the system from shutting down. <br><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 11, 2018, 2:19 PM Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Sep 11, 2018 at 10:06 PM Evan Klitzke <<a href="mailto:evan@eklitzke.org" target="_blank">evan@eklitzke.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When I power off my laptop, I often (but not always) have a long <br>
shutdown process. When this happens, the console says "A stop job is <br>
running for User Manager for UID 1000" with a 1m59s timeout, and I have <br>
to wait for that timeout before my computer shuts down. How can I debug <br>
which service is causing this issue?<br></blockquote><div><br></div><div>Have debug-shell.service running before poweroff. During the hang, switch to tty9 and run:</div><div><br></div><div> sudo -u evan XDG_RUNTIME_DIR=/run/user/1000 systemctl --user list-jobs</div></div></div><div dir="ltr"><div><br></div>-- <br><div dir="ltr" class="m_4515060390848778311gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">Ryan (ライアン)<br>
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else<br>
<a href="https://refi64.com/">https://refi64.com/</a></p>
</div>