Comment by WhyNotHugo
10 months ago
The time it takes for some systems to shut down doesn't make sense to me.
My Alpine laptop takes about 3 seconds to shut down (which, honestly, seems like a lot of time). systemd-based system will give daemons 90000ms to shut down, which is an absurdly high amount of time (what kind of service can't exit in a few seconds?).
Honestly, I think that mostly the kernel needs to flush its caches, SIGTERM all processes and then halt. There's no reason for this to take more than 1s on a modern system, and if something takes too long to handle SIGTERM, then it'll go through recovery next time.
> 90000ms to shut down, which is an absurdly high amount of time (what kind of service can't exit in a few seconds?)
I think I remember reading the biggest culprit nowadays (when specifically looking for why it takes so long for ubuntu to shut down) is snapd, that it unmounts all its squashfs filesystems one by one before exiting.
Looking on the bright side, I would like to thank Ubuntu for self-destructing so comprehensively that it's exposed the Linux user base to other distributions that still respect their users.