Skip to content

Commit

Permalink
units: use SuccessAction=reboot-force in systemd-reboot.service
Browse files Browse the repository at this point in the history
  • Loading branch information
keszybz committed Oct 17, 2018
1 parent 631c9b7 commit d85515e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
6 changes: 0 additions & 6 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ Features:

* chown() tty a service is attached to after the service goes down

* replace systemd-reboot.service's ExecStart= with a single SuccessAction=
line, so that we don't need to fork() for executing the reboot
service. Similar for other services like this, such as systemd-exit.service
and so on. Of course, for this to work service units with no ExecYYZ= set but
SuccessAction= set need to be acceptable.

* optionally: turn on cgroup delegation for per-session scope units

* optionally, if a per-partition GPT flag is set for the root/home/… partitions
Expand Down
2 changes: 1 addition & 1 deletion units/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ units = [
'sockets.target.wants/'],
['systemd-networkd.socket', 'ENABLE_NETWORKD',
join_paths(pkgsysconfdir, 'system/sockets.target.wants/')],
['systemd-reboot.service', ''],
['systemd-rfkill.socket', 'ENABLE_RFKILL'],
['systemd-tmpfiles-clean.timer', '',
'timers.target.wants/'],
Expand Down Expand Up @@ -182,7 +183,6 @@ in_units = [
['systemd-quotacheck.service', 'ENABLE_QUOTACHECK'],
['systemd-random-seed.service', 'ENABLE_RANDOMSEED',
'sysinit.target.wants/'],
['systemd-reboot.service', ''],
['systemd-remount-fs.service', '',
'local-fs.target.wants/'],
['systemd-resolved.service', 'ENABLE_RESOLVE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ Documentation=man:systemd-halt.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target

[Service]
Type=oneshot
ExecStart=@SYSTEMCTL@ --force reboot
SuccessAction=reboot-force

0 comments on commit d85515e

Please sign in to comment.