From 2c883d7591f1545315a0c8ae5c487342f3cf9178 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 29 Sep 2025 22:26:54 +0900 Subject: [PATCH] units: move FailureAction= to the correct section FailureAction= in [Service] is still supported but deprecated. Follow-up for e3d4148d50909119c4e9327e6ad96d3ca7f4661a. --- units/systemd-battery-check.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/systemd-battery-check.service.in b/units/systemd-battery-check.service.in index ee87118a07..79f47a3acd 100644 --- a/units/systemd-battery-check.service.in +++ b/units/systemd-battery-check.service.in @@ -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