From f32adbe9bf26d502cb055b3a6cb98fc57e06bf13 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 26 Jul 2019 14:06:16 -0400 Subject: [PATCH 4/4] 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 72201c1fd..202ab6753 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 -- 2.18.1