a52f674
From a2ca1771f9f8f2b8b5f08ab181e5cd9e6935f695 Mon Sep 17 00:00:00 2001
ca73a27
From: Colin Guthrie <colin@mageia.org>
ca73a27
Date: Mon, 27 Jan 2014 17:54:29 +0000
ca73a27
Subject: [PATCH] Temporary work around for slow shutdown due to unterminated
ca73a27
 user sessions.
ca73a27
ca73a27
---
ca73a27
 units/user@.service.in | 7 +++++++
ca73a27
 1 file changed, 7 insertions(+)
ca73a27
ca73a27
diff --git a/units/user@.service.in b/units/user@.service.in
ca73a27
index 3f8b59d..a7e0584 100644
ca73a27
--- a/units/user@.service.in
ca73a27
+++ b/units/user@.service.in
ca73a27
@@ -14,5 +14,12 @@ User=%I
ca73a27
 PAMName=systemd-user
ca73a27
 Type=notify
ca73a27
 ExecStart=-@rootlibexecdir@/systemd --user
ca73a27
+# Apply same work around as apache's httpd until issues with user session
ca73a27
+# killing is fixed (currently problem is that the kill issued by systemd --user
ca73a27
+# is itself killed by systemd (PID1) before it can work which can lead to slow
ca73a27
+# shutdowns
ca73a27
+# http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/16363
ca73a27
+ExecStop=/bin/kill -TERM ${MAINPID}
ca73a27
+KillSignal=SIGCONT
ca73a27
 Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket
ca73a27
 Slice=user-%i.slice