mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +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:
@@ -18,9 +18,9 @@ AssertPathExists=/etc/initrd-release
|
|||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=plymouth-start.service
|
After=plymouth-start.service
|
||||||
Before=initrd-root-device.target systemd-hibernate-resume.service
|
Before=initrd-root-device.target systemd-hibernate-resume.service
|
||||||
|
FailureAction=poweroff-force
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart={{LIBEXECDIR}}/systemd-battery-check
|
ExecStart={{LIBEXECDIR}}/systemd-battery-check
|
||||||
FailureAction=poweroff-force
|
|
||||||
|
Reference in New Issue
Block a user