Whenever I shutdown my Debian system, stop jobs are running for 1m30. I don't know what causes this and would like to investigate.
I've look for various questions about shutdown logs however neither syslog
or messages
displays relevant info on that (logs seems to stop at the exact same time I press shutdown). Kern.log
only have the boot logs.
The install is pretty fresh and do not always do that. It is installed on a SSD and boot really fast.
How can I log everything done on shutdown ?
EDIT :
So I made journalctl storage to persistent and I can know read shutdown logs. However I can't read the stop jobs logs. Indeed I have a 1min30 blackhole in the logs :
janv. 02 14:47:56 Orion systemd-logind[611]: Removed session 3.
janv. 02 14:47:56 Orion systemd[1]: Unmounted /run/user/1000.
janv. 02 14:49:25 Orion systemd[738]: at-spi-dbus-bus.service: State 'stop-sigterm' timed out. Killing.
janv. 02 14:49:25 Orion systemd[1]: dev-disk-by\x2did-dm\x2dname\x2dsdb7_crypt.device: Job dev-disk-by\x2did-dm\x2dname\x2dsdb7_crypt.device/stop timed out.
to read
GRUB_CMDLINE_LINUX_DEFAULT="nosplash". As
syslogservice is stopped very early in shutdown procedure (needs e.g. filesystems mounted and probably network), it does not log entries stopped later. Maybe modifying
/etc/init.d/rsyslog` (depending on your system, may vary) could help, but that might confuse your system. – ridgy Jan 02 '18 at 12:02journalctl
show anything useful? – Stephen Kitt Jan 02 '18 at 13:22journalctl --since "2018-01-02 12:00:00 > export.txt
but nothing before the boot. – Lich4r Jan 02 '18 at 13:39