News for hackers. Stuff that matters.
Re:Crash-only software: More than meets the eye (2006) by WhyNotHugo on Wednesday May 01, 2024 @04:24AM (#40220829)
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.

Re:Crash-only software: More than meets the eye (2006) by Izkata on Wednesday May 01, 2024 @07:55PM (#40231125)
> 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.

Re:Crash-only software: More than meets the eye (2006) by fl0ki on Thursday May 02, 2024 @09:17AM (#40235880)
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.