2 ms·
> Does anyone know if there's any precedent for a UNIX init system to behave like this? I'm not sure if you'd call it an init system (but I guess any collectio
by geofft 10y ago
> Does anyone know if there's any precedent for a UNIX init system to behave like this?
I'm not sure if you'd call it an init system (but I guess any collection of shell scripts is a traditional UNIX init system), but MIT Athena has worked this way for many years: when you log out of a graphical session, there's an attempt to kill all your processes, because the machine should be fully for the use of whoever next logs in. Otherwise people would do long-running computing on machines in the computer labs ("clusters") and slow down interactive use for the next person -- and that's the non-malicious case.
It used to be possible to get around this until some point in the late 2000s, when as part of unrelated rewriting, the logout script was set to just reboot the machine if it was unsure if it managed to clean everything up.