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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
ab0f6a8f2c
commit
bf15e896b9
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user