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:
@@ -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
|
||||
|
Reference in New Issue
Block a user