You are not logged in.

#1 2016-07-09 07:55:46

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,487

Force systemd to shutdown within a short timeout in every circumstance

I have had similar problems in the past that I believe was solved but it was not completely. In order to reduce systemd time at shutdown in case of a nasty job or unit, I have put:

[Manager]
DefaultTimeoutStartSec=15s
DefaultTimeoutStopSec=5s

in /etc/systemd/system.conf.d/timeout

But, once again I have experienced a "hang" (or a long timeout). I have mounted a cifs share manually in my home directory. The share was no longer available (the other computer had been shut down). When I wanted to shutdown my machine systemd apparently waited for this share to be unmounted and hang "or wait a long time". Is it possible to configure systemd to shutdown the machine with a short timeout (10s for example) no matter how nasty things do not stop/unmount or whatever. Once again I have shutdown my machine with the Sysreq trick.

Offline

Board footer

Powered by FluxBB