User Tools

Site Tools


Ham Radio





Shutdown timeout with systemd

Sometimes I have the problem with Lubuntu 18.04 LTS on a Thinkpad T430S, that a shutdown needs a long time. Mostly the problem is Samba, which does not stop in the specified time. During shutdown you got a message like this on console:

A stop job is running for Session [..]

The systemd starts and stops processes. For stopping jobs there is an timeout of 90s. This is certainly appropriate for servers, especially when databases are running, but much too long for a client system.

To change this timeout you have to edit /etc/systemd/systemd.conf:


Simple uncomment the line which defines this timeout, 'DefaultTimeoutStopSec' and change the value as you like.

You should not enter a value, which is rather low. I use 10s, I think this is for an client computer without local databases or similar software fine. Anyway, I only have the problem with the Samba client.
This website uses cookies. By using the website, you agree with storing cookies on your computer. If you do not agree leave the website.More information about cookies
blog/systemd_shutdown.txt · Last modified: 2021-05-13 17:42 by Tom, DL7BJ