From bf15e896b998b8a561c5d90ac30a8b7046f4a337 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 20 Jul 2026 18:35:28 -0700 Subject: [PATCH] Pin power action timers to 100ms accuracy Transient systemd timers default to AccuracySec=1min, so the 2s reboot/shutdown could fire up to a minute late. Co-Authored-By: Claude Fable 5 --- bin/omarchy-system-reboot | 2 +- bin/omarchy-system-shutdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-system-reboot b/bin/omarchy-system-reboot index e3e23c36..60744886 100755 --- a/bin/omarchy-system-reboot +++ b/bin/omarchy-system-reboot @@ -6,7 +6,7 @@ # Schedule the reboot in the user manager so closing the terminal's systemd # scope cannot terminate it before it runs. -systemd-run --user --collect --quiet --on-active="2s" systemctl reboot --no-wall || exit 1 +systemd-run --user --collect --quiet --on-active="2s" --timer-property=AccuracySec=100ms systemctl reboot --no-wall || exit 1 omarchy-state clear re*-required diff --git a/bin/omarchy-system-shutdown b/bin/omarchy-system-shutdown index e13e6658..9a8eb8e5 100755 --- a/bin/omarchy-system-shutdown +++ b/bin/omarchy-system-shutdown @@ -6,7 +6,7 @@ # Schedule the shutdown in the user manager so closing the terminal's systemd # scope cannot terminate it before it runs. -systemd-run --user --collect --quiet --on-active="2s" systemctl poweroff --no-wall || exit 1 +systemd-run --user --collect --quiet --on-active="2s" --timer-property=AccuracySec=100ms systemctl poweroff --no-wall || exit 1 omarchy-state clear re*-required