On 9/22/20 9:45 PM, Rodney Baker wrote:
On Monday, 21 September 2020 9:39:29 ACST Simon Lees wrote:
On 9/19/20 6:07 PM, Rodney Baker wrote:
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?
My understanding is you should just have your changes from default in your file in /etc/systemd that way if one of the other param's changes in the future due to a new feature etc you will still automatically get those changes.
OK, thanks, Simon. BTW, I note you live near Adelaide. So do I - Mt Compass (just down the road). :)
Yeah I noticed the Australian callsign in your sig, I'm in Reynella just off the expressway so it is pretty much just down the road. I have family on the south coast so I go through Mt Compass a few times a month. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B