teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0669-units-use-SuccessAction-exit-force-in-systemd-exit.s.patch

b8c242
From b0394ad25fd601b9ef29d26b87f12b0a0c17cda0 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:09:11 +0200
b8c242
Subject: [PATCH] units: use SuccessAction=exit-force in systemd-exit.service
b8c242
b8c242
Fixes #10414.
b8c242
b8c242
v2:
b8c242
- rename .service.in to .service
b8c242
- rename 'exit' to 'exit-force'
b8c242
b8c242
(cherry picked from commit 631c9b7bf2dab5065d753a7b1cfaff5b100b3c90)
b8c242
b8c242
Resolves: #1860899
b8c242
---
b8c242
 units/user/meson.build                                       | 2 +-
b8c242
 units/user/{systemd-exit.service.in => systemd-exit.service} | 5 +----
b8c242
 2 files changed, 2 insertions(+), 5 deletions(-)
b8c242
 rename units/user/{systemd-exit.service.in => systemd-exit.service} (87%)
b8c242
b8c242
diff --git a/units/user/meson.build b/units/user/meson.build
b8c242
index b1c2e95597..36341a42f5 100644
b8c242
--- a/units/user/meson.build
b8c242
+++ b/units/user/meson.build
b8c242
@@ -14,6 +14,7 @@ units = [
b8c242
         'sockets.target',
b8c242
         'sound.target',
b8c242
         'timers.target',
b8c242
+        'systemd-exit.service',
b8c242
         'systemd-tmpfiles-clean.timer',
b8c242
 ]
b8c242
 
b8c242
@@ -23,7 +24,6 @@ foreach file : units
b8c242
 endforeach
b8c242
 
b8c242
 in_units = [
b8c242
-        'systemd-exit.service',
b8c242
         'systemd-tmpfiles-clean.service',
b8c242
         'systemd-tmpfiles-setup.service',
b8c242
 ]
b8c242
diff --git a/units/user/systemd-exit.service.in b/units/user/systemd-exit.service
b8c242
similarity index 87%
b8c242
rename from units/user/systemd-exit.service.in
b8c242
rename to units/user/systemd-exit.service
b8c242
index d69273f6b3..1d3b61e3ab 100644
b8c242
--- a/units/user/systemd-exit.service.in
b8c242
+++ b/units/user/systemd-exit.service
b8c242
@@ -13,7 +13,4 @@ Documentation=man:systemd.special(7)
b8c242
 DefaultDependencies=no
b8c242
 Requires=shutdown.target
b8c242
 After=shutdown.target
b8c242
-
b8c242
-[Service]
b8c242
-Type=oneshot
b8c242
-ExecStart=@SYSTEMCTL@ --user --force exit
b8c242
+SuccessAction=exit-force