Page 1 of 1

Troubleshoot Linux long shutdowns

Posted: Sat Apr 05, 2025 4:59 am
by Mitu100@
This can delay the shutdown process because your system will wait for a predetermined period of time to stop running processes. After this period of time, it sends a kill signal to forcefully stop all remaining running processes and shuts down the system. I recommend reading about sigterm vs sigkill to understand the difference.

In fact, in some cases you may see a message like «the job is stopped» on a black screen.

If your system takes too long to shut down, you can do the following:

Check which process / service is taking too long phone number list and if you can uninstall or reconfigure it to work correctly.
Change the default timeout period before your system forcibly stops running processes. [Quick and dirty fix]
Here I am using Ubuntu which uses systemd. The commands and steps given here are valid for any Linux distribution that uses systemd (most of them do).


Check which processes are causing long shutdowns on Linux
If you want to find out what happened, you should check what happened on the last shutdown. Use this command to get more information::

journalctl -rb -1
The journalctl command allows you to read the system logs. Using parameters «-b -1» you are filtering the logs for the last download session. When choosing an option «-r» the logs are displayed in reverse chronological order.