User Tools

Site Tools


Sidebar

Ham Radio

Software

Hardware

Knowledge

Blog

About

blog:systemd_shutdown

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:

#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s

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

DefaultTimeoutStopSec=10s
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: 2019-08-16 20:52 by Tom, DL7BJ