]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: use SuccessAction=reboot-force in systemd-reboot.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Oct 2018 13:30:53 +0000 (15:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 17:31:50 +0000 (19:31 +0200)
TODO
units/meson.build
units/systemd-reboot.service [moved from units/systemd-reboot.service.in with 89% similarity]

diff --git a/TODO b/TODO
index db2b61c3e26274684527b63041a0d8498eecaece..0b6573518f670ae2bb93607e4c46048d5eb6973a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -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
index e4ac6ced64365c906c2b85cbfd1bca578e45892e..3785e15decf68de88edae2b265248ce569e72ae3 100644 (file)
@@ -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/'],
@@ -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',
similarity index 89%
rename from units/systemd-reboot.service.in
rename to units/systemd-reboot.service
index 4763ccfdca75231756a5ef3a06f00bd0715ea35c..505f60aabf026a1bccc1fb3c982d9fd4886de334 100644 (file)
@@ -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