I always shut down my Ubuntu MATE 16.04 system in exactly the same way: I keep hitting alt+F4 until I get to the very last terminal window and all other applications have been exited, and then I type poweroff
Despite the consistency of my procedure, the time taken by the system to fully shut down (ie the amount of time I'm watching the splash screen) varies a lot, from about 3 seconds to about 25 seconds. Why does this happen, or how can I find out?
I know I can read the logs, but I would love some tips on how to analyse for this
From
man 8 shutdown
:Then, each and every daemon process recognizes the change in RUNLEVEL, and takes appropriate action. This could be anything from a quick
exit
to a configuration save to a cache flush or even a whole database freeze.Depending on what level of logging you have set up for each daemon. you may see some information in
/var/log/*
and subdirectories of/var/log/
.