See http://lists.freedesktop.org/archives/systemd-devel/2015-May/031536.html

We probably want to use KillMode=mixed, but let's start with the ones
using sulogin.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
From d3118dc4705c8f6a3d341bf8e8c0e05f84a93127 Mon Sep 17 00:00:00 2001
From: Michael Biebl <bi...@debian.org>
Date: Fri, 8 May 2015 17:35:52 +0200
Subject: [PATCH] unit: Set KillMode=mixed for services which use sulogin

Don't rely on sulogin to cleanup all child processes but use
KillMode=mixed instead to make sure we don't have any stray bash
process.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784238
---
 units/console-shell.service.m4.in | 2 +-
 units/emergency.service.in        | 2 +-
 units/rescue.service.in           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/units/console-shell.service.m4.in b/units/console-shell.service.m4.in
index 5c80722..b3a0c00 100644
--- a/units/console-shell.service.m4.in
+++ b/units/console-shell.service.m4.in
@@ -23,7 +23,7 @@ Type=idle
 StandardInput=tty-force
 StandardOutput=inherit
 StandardError=inherit
-KillMode=process
+KillMode=mixed
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
 
diff --git a/units/emergency.service.in b/units/emergency.service.in
index 2695d7b..d9f1926 100644
--- a/units/emergency.service.in
+++ b/units/emergency.service.in
@@ -23,6 +23,6 @@ Type=idle
 StandardInput=tty-force
 StandardOutput=inherit
 StandardError=inherit
-KillMode=process
+KillMode=mixed
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
diff --git a/units/rescue.service.in b/units/rescue.service.in
index de73fee..a4eaa3e 100644
--- a/units/rescue.service.in
+++ b/units/rescue.service.in
@@ -23,6 +23,6 @@ Type=idle
 StandardInput=tty-force
 StandardOutput=inherit
 StandardError=inherit
-KillMode=process
+KillMode=mixed
 IgnoreSIGPIPE=no
 SendSIGHUP=yes
-- 
2.1.4

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to