[gdm/fix-jump-back-to-login-screen: 18/21] data: reap gdm sessions on shutdown
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/fix-jump-back-to-login-screen: 18/21] data: reap gdm sessions on shutdown
- Date: Tue, 22 Mar 2022 14:41:13 +0000 (UTC)
commit a6618249fe18c8d7f1f5db8a23912939fd81c1f3
Author: Ray Strode <rstrode redhat com>
Date: Fri Jul 26 14:06:16 2019 -0400
data: reap gdm sessions on shutdown
If GDM gets shutdown we should make sure all sessions get shutdown too.
This is a bit of a safety net in case any processes in the session are
lingering after the orderly shutdown.
data/gdm.service.in | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/data/gdm.service.in b/data/gdm.service.in
index 17e8a8de8..195bd0fdc 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -21,6 +21,7 @@ OnFailure=plymouth-quit.service
[Service]
ExecStart=${sbindir}/gdm
+ExecStopPost=-/usr/bin/bash -c 'for f in /run/systemd/sessions/*; do [ -f $f ] && /usr/bin/fgrep -q
SERVICE=gdm $f && loginctl terminate-session $(basename $f); done'
KillMode=mixed
Restart=always
IgnoreSIGPIPE=no
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]