]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: move FailureAction= to the correct section
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Sep 2025 13:26:54 +0000 (22:26 +0900)
committerMike Yuan <me@yhndnzj.com>
Mon, 29 Sep 2025 20:47:24 +0000 (22:47 +0200)
FailureAction= in [Service] is still supported but deprecated.

Follow-up for e3d4148d50909119c4e9327e6ad96d3ca7f4661a.

units/systemd-battery-check.service.in

index ee87118a074b033d80f9d34503cc018d5f56f1b7..79f47a3acd05215af7388d357186946e75c90011 100644 (file)
@@ -18,9 +18,9 @@ AssertPathExists=/etc/initrd-release
 DefaultDependencies=no
 After=plymouth-start.service
 Before=initrd-root-device.target systemd-hibernate-resume.service
+FailureAction=poweroff-force
 
 [Service]
 Type=oneshot
 RemainAfterExit=yes
 ExecStart={{LIBEXECDIR}}/systemd-battery-check
-FailureAction=poweroff-force