naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
17aa40
From f531c34dd8ead33b9972bcd06017ac80ccedb757 Mon Sep 17 00:00:00 2001
17aa40
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
17aa40
Date: Tue, 16 Oct 2018 15:30:53 +0200
17aa40
Subject: [PATCH] units: use SuccessAction=reboot-force in
17aa40
 systemd-reboot.service
17aa40
17aa40
(cherry picked from commit d85515edcf9700dc068201ab9f7103f04f3b25b2)
17aa40
17aa40
Related: #1860899
17aa40
---
17aa40
 units/meson.build                                           | 2 +-
17aa40
 units/{systemd-reboot.service.in => systemd-reboot.service} | 5 +----
17aa40
 2 files changed, 2 insertions(+), 5 deletions(-)
17aa40
 rename units/{systemd-reboot.service.in => systemd-reboot.service} (89%)
17aa40
17aa40
diff --git a/units/meson.build b/units/meson.build
17aa40
index a1cd2524dc..b482431a10 100644
17aa40
--- a/units/meson.build
17aa40
+++ b/units/meson.build
17aa40
@@ -97,6 +97,7 @@ units = [
17aa40
          'sockets.target.wants/'],
17aa40
         ['systemd-networkd.socket',             'ENABLE_NETWORKD',
17aa40
          join_paths(pkgsysconfdir, 'system/sockets.target.wants/')],
17aa40
+        ['systemd-reboot.service',               ''],
17aa40
         ['systemd-rfkill.socket',               'ENABLE_RFKILL'],
17aa40
         ['systemd-tmpfiles-clean.timer',        '',
17aa40
          'timers.target.wants/'],
17aa40
@@ -182,7 +183,6 @@ in_units = [
17aa40
         ['systemd-quotacheck.service',           'ENABLE_QUOTACHECK'],
17aa40
         ['systemd-random-seed.service',          'ENABLE_RANDOMSEED',
17aa40
          'sysinit.target.wants/'],
17aa40
-        ['systemd-reboot.service',               ''],
17aa40
         ['systemd-remount-fs.service',           '',
17aa40
          'local-fs.target.wants/'],
17aa40
         ['systemd-resolved.service',             'ENABLE_RESOLVE',
17aa40
diff --git a/units/systemd-reboot.service.in b/units/systemd-reboot.service
17aa40
similarity index 89%
17aa40
rename from units/systemd-reboot.service.in
17aa40
rename to units/systemd-reboot.service
17aa40
index 4763ccfdca..505f60aabf 100644
17aa40
--- a/units/systemd-reboot.service.in
17aa40
+++ b/units/systemd-reboot.service
17aa40
@@ -13,7 +13,4 @@ Documentation=man:systemd-halt.service(8)
17aa40
 DefaultDependencies=no
17aa40
 Requires=shutdown.target umount.target final.target
17aa40
 After=shutdown.target umount.target final.target
17aa40
-
17aa40
-[Service]
17aa40
-Type=oneshot
17aa40
-ExecStart=@SYSTEMCTL@ --force reboot
17aa40
+SuccessAction=reboot-force