]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: use SuccessAction=exit-force in systemd-exit.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Oct 2018 13:09:11 +0000 (15:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 17:31:50 +0000 (19:31 +0200)
Fixes #10414.

v2:
- rename .service.in to .service
- rename 'exit' to 'exit-force'

units/user/meson.build
units/user/systemd-exit.service [moved from units/user/systemd-exit.service.in with 87% similarity]

index b1c2e95597682c537210b486bc7d85a73e0cc2a9..36341a42f5abf48a22fadd7b075a18fb49a761ed 100644 (file)
@@ -14,6 +14,7 @@ units = [
         'sockets.target',
         'sound.target',
         'timers.target',
+        'systemd-exit.service',
         'systemd-tmpfiles-clean.timer',
 ]
 
@@ -23,7 +24,6 @@ foreach file : units
 endforeach
 
 in_units = [
-        'systemd-exit.service',
         'systemd-tmpfiles-clean.service',
         'systemd-tmpfiles-setup.service',
 ]
similarity index 87%
rename from units/user/systemd-exit.service.in
rename to units/user/systemd-exit.service
index d69273f6b30d31ad8f6dce5c2482647eb3b707df..1d3b61e3ab1e74d7d42dbc73f1db1c2dc1b4d949 100644 (file)
@@ -13,7 +13,4 @@ Documentation=man:systemd.special(7)
 DefaultDependencies=no
 Requires=shutdown.target
 After=shutdown.target
-
-[Service]
-Type=oneshot
-ExecStart=@SYSTEMCTL@ --user --force exit
+SuccessAction=exit-force