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