Fix PSD (profile-sync-daemon occasionally) failing to sync the browser profile due to a rather short systemd default timeout

[yet another off-off-topic]

The (likely few) people with slow machines (like me) may be hit by this problem with profile-sync-daemon occasionally failing to sync (read: corrupting) the browser profile due to a rather short systemd default timeout:
Stopping psd on shutdown could get timeout and killed · Issue #352 · graysky2/profile-sync-daemon · GitHub

fish❯ bat -p /usr/lib/systemd/{system,user}.conf.d/timeout.conf
[Manager]
DefaultTimeoutStopSec=10s
DefaultTimeoutAbortSec=10s
[Manager]
DefaultTimeoutStopSec=10s
DefaultTimeoutAbortSec=10s

Affected users can try a drop-in unit (see GitHub thread) to override the timeouts.
I have not done yet but it should work. Apologies if known already.

4 Likes
systemctl show user@$(id -u) | grep TimeoutStop
TimeoutStopUSec=2min
TimeoutStopFailureMode=terminate

Thanks for the tip, I’ve moved your post, it was off-topic there :wink:

4 Likes