From 631c9b7bf2dab5065d753a7b1cfaff5b100b3c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 16 Oct 2018 15:09:11 +0200 Subject: units: use SuccessAction=exit-force in systemd-exit.service Fixes #10414. v2: - rename .service.in to .service - rename 'exit' to 'exit-force' --- units/user/meson.build | 2 +- units/user/systemd-exit.service | 16 ++++++++++++++++ units/user/systemd-exit.service.in | 19 ------------------- 3 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 units/user/systemd-exit.service delete mode 100644 units/user/systemd-exit.service.in diff --git a/units/user/meson.build b/units/user/meson.build index b1c2e95597..36341a42f5 100644 --- a/units/user/meson.build +++ b/units/user/meson.build @@ -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', ] diff --git a/units/user/systemd-exit.service b/units/user/systemd-exit.service new file mode 100644 index 0000000000..1d3b61e3ab --- /dev/null +++ b/units/user/systemd-exit.service @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Exit the Session +Documentation=man:systemd.special(7) +DefaultDependencies=no +Requires=shutdown.target +After=shutdown.target +SuccessAction=exit-force diff --git a/units/user/systemd-exit.service.in b/units/user/systemd-exit.service.in deleted file mode 100644 index d69273f6b3..0000000000 --- a/units/user/systemd-exit.service.in +++ /dev/null @@ -1,19 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1+ -# -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -[Unit] -Description=Exit the Session -Documentation=man:systemd.special(7) -DefaultDependencies=no -Requires=shutdown.target -After=shutdown.target - -[Service] -Type=oneshot -ExecStart=@SYSTEMCTL@ --user --force exit -- cgit v1.2.1