From d52ae29e66d48523412593d53d582a75d172af6e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 15:13:32 +0100 Subject: [PATCH] Fix User Manager hanging on shutdown --- default/systemd/user@.service.d/faster-shutdown.conf | 2 ++ install/config/fast-shutdown.sh | 2 ++ migrations/1771683168.sh | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 default/systemd/user@.service.d/faster-shutdown.conf create mode 100644 migrations/1771683168.sh diff --git a/default/systemd/user@.service.d/faster-shutdown.conf b/default/systemd/user@.service.d/faster-shutdown.conf new file mode 100644 index 00000000..449242ce --- /dev/null +++ b/default/systemd/user@.service.d/faster-shutdown.conf @@ -0,0 +1,2 @@ +[Service] +TimeoutStopSec=5s diff --git a/install/config/fast-shutdown.sh b/install/config/fast-shutdown.sh index 627e02a5..c7cc7827 100644 --- a/install/config/fast-shutdown.sh +++ b/install/config/fast-shutdown.sh @@ -1,3 +1,5 @@ sudo mkdir -p /etc/systemd/system.conf.d sudo cp "$OMARCHY_PATH/default/systemd/faster-shutdown.conf" /etc/systemd/system.conf.d/10-faster-shutdown.conf +sudo mkdir -p /etc/systemd/system/user@.service.d +sudo cp "$OMARCHY_PATH/default/systemd/user@.service.d/faster-shutdown.conf" /etc/systemd/system/user@.service.d/faster-shutdown.conf sudo systemctl daemon-reload diff --git a/migrations/1771683168.sh b/migrations/1771683168.sh new file mode 100644 index 00000000..f5a47427 --- /dev/null +++ b/migrations/1771683168.sh @@ -0,0 +1,2 @@ +echo "Fix User Manager hanging on shutdown" +source $OMARCHY_PATH/install/config/fast-shutdown.sh