Blame SOURCES/0004-data-reap-gdm-sessions-on-shutdown.patch

79c81f
From f32adbe9bf26d502cb055b3a6cb98fc57e06bf13 Mon Sep 17 00:00:00 2001
79c81f
From: Ray Strode <rstrode@redhat.com>
79c81f
Date: Fri, 26 Jul 2019 14:06:16 -0400
79c81f
Subject: [PATCH 4/4] data: reap gdm sessions on shutdown
79c81f
79c81f
If GDM gets shutdown we should make sure all sessions get shutdown too.
79c81f
79c81f
This is a bit of a safety net in case any processes in the session are
79c81f
lingering after the orderly shutdown.
79c81f
---
79c81f
 data/gdm.service.in | 1 +
79c81f
 1 file changed, 1 insertion(+)
79c81f
79c81f
diff --git a/data/gdm.service.in b/data/gdm.service.in
79c81f
index 72201c1fd..202ab6753 100644
79c81f
--- a/data/gdm.service.in
79c81f
+++ b/data/gdm.service.in
79c81f
@@ -21,6 +21,7 @@ OnFailure=plymouth-quit.service
79c81f
 
79c81f
 [Service]
79c81f
 ExecStart=@sbindir@/gdm
79c81f
+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'
79c81f
 KillMode=mixed
79c81f
 Restart=always
79c81f
 IgnoreSIGPIPE=no
79c81f
-- 
79c81f
2.18.1
79c81f