Skip to content

Commit afa6206

Browse files
committed
units: use SuccessAction=poweroff-force in systemd-poweroff.service
Explicit systemctl calls remain in systemd-halt.service and the system systemd-exit.service. To convert systemd-halt, we'd need to add SuccessAction=halt-force. Halting doesn't make much sense, so let's just leave that is. systemd-exit.service will be converted in the next commit.
1 parent d85515e commit afa6206

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

units/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ units = [
9797
'sockets.target.wants/'],
9898
['systemd-networkd.socket', 'ENABLE_NETWORKD',
9999
join_paths(pkgsysconfdir, 'system/sockets.target.wants/')],
100+
['systemd-poweroff.service', ''],
100101
['systemd-reboot.service', ''],
101102
['systemd-rfkill.socket', 'ENABLE_RFKILL'],
102103
['systemd-tmpfiles-clean.timer', '',
@@ -179,7 +180,6 @@ in_units = [
179180
['systemd-nspawn@.service', ''],
180181
['systemd-portabled.service', 'ENABLE_PORTABLED',
181182
'dbus-org.freedesktop.portable1.service'],
182-
['systemd-poweroff.service', ''],
183183
['systemd-quotacheck.service', 'ENABLE_QUOTACHECK'],
184184
['systemd-random-seed.service', 'ENABLE_RANDOMSEED',
185185
'sysinit.target.wants/'],
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,4 @@ Documentation=man:systemd-halt.service(8)
1313
DefaultDependencies=no
1414
Requires=shutdown.target umount.target final.target
1515
After=shutdown.target umount.target final.target
16-
17-
[Service]
18-
Type=oneshot
19-
ExecStart=@SYSTEMCTL@ --force poweroff
16+
SuccessAction=poweroff-force

0 commit comments

Comments
 (0)