From 3c238dff41fbd3687457989c7b17d22b2cc844be Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 14 Oct 2014 14:39:10 +0100 Subject: openssh: avoid screen sessions being killed on disconnect with systemd Tell systemd just to kill the sshd process when the ssh connection drops instead of the entire cgroup for sshd, so that any screen sessions (and more to the point, processes within them) do not get killed. (This is what the Fedora sshd service file does, and what we're already doing in the dropbear service file). Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- meta/recipes-connectivity/openssh/openssh/sshd@.service | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-connectivity') diff --git a/meta/recipes-connectivity/openssh/openssh/sshd@.service b/meta/recipes-connectivity/openssh/openssh/sshd@.service index 4eda6592f5..bb2d68e96a 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshd@.service +++ b/meta/recipes-connectivity/openssh/openssh/sshd@.service @@ -8,3 +8,4 @@ ExecStart=-@SBINDIR@/sshd -i ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID StandardInput=socket StandardError=syslog +KillMode=process -- cgit v1.2.3