1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 16:03:15 +02:00

units: move FailureAction= to the correct section

FailureAction= in [Service] is still supported but deprecated.

Follow-up for e3d4148d50.
This commit is contained in:
Yu Watanabe
2025-09-29 22:26:54 +09:00
committed by Mike Yuan
parent 0c3639d0f5
commit 2c883d7591

View 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