On Tuesday, 15 September 2020 23:40:10 ACST Rodney Baker wrote:
On Tuesday, 15 September 2020 1:37:15 ACST Peter Suetterlin wrote:
Rodney Baker wrote:
Hi all,
For some time I've been seeing shutdown delays of up to 2min 30 sec on Tumbleweed. The system reports, "A stop job is running for /run/user/<user_id> min:sec (counting down)", where min:sec can be anywhere up to 2-3 minutes.
Yeah, have seen that (too) many times. Same if somewhere someone was logged in in one of the virtual screens.
My pragmatic approach is to have
DefaultTimeoutStopSec=10s
in /etc/systemd/system.conf
Thanks, Peter. I also see in /usr/lib/systemd/system/user@.service, a line that says, "TimeoutStopSec=120s".
I've changed that to 10s too - I'll see how that goes. Interestingly, this .service file has an ExecStart line but no ExecStop (while other services have both). I don't know if that's signficant or not. I don't know enough about systemd service definitions to make that call.
Regards, Rodney.
So, yes, changing TimeoutStopSec in /usr/lib/systemd/system/user@service from 120s to 10s seems to have helped significantly. Since that change, the maximum wait time I've seen shutting down is 13secs, which is a lot better than 2-3 minutes. I don't know what is the relationship between DefaultTimeoutStopSec in /etc/ systemd/system.conf and TimeoutStopSec in user@service, but it's now down to what I would consider acceptable levels. The next question therefore is, should I copy the customised /user/lib/ systemd/system/user@service to /etc/systemd/system? As I understand the new paradigm, the system default files should stay in /usr/lib/systemd/... with local customised files under /etc/systemd/... (which won't be overwritten during an update, whereas files under /usr/lib/systemd/ most likely will be). Is that correct? -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au CCNA #CSCO12880208 ============================================================== -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org