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