dryang / rpms / systemd

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