Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.
Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.
When I use systemctl shutdown it happens instantly
If a process closes immediately from the shutdown command because it isn’t doing anything, sure.
Question, what’s the default wait time?
Depends on the process. Can be 30 seconds. Can be 5 minutes.
The default in systemd, unless your distribution has modified it either globally, or for a specific service, is 90 seconds