summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-10-14 14:39:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-18 16:12:55 +0200
commit3c238dff41fbd3687457989c7b17d22b2cc844be (patch)
tree696fa05dbc2af897181e67c230c72e915e8bc5a9 /meta/recipes-connectivity
parenta8216030ee6c65531de8fbf3eed878a345a94edc (diff)
downloadopenembedded-core-3c238dff41fbd3687457989c7b17d22b2cc844be.tar.gz
openembedded-core-3c238dff41fbd3687457989c7b17d22b2cc844be.tar.bz2
openembedded-core-3c238dff41fbd3687457989c7b17d22b2cc844be.zip
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 <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/sshd@.service1
1 files changed, 1 insertions, 0 deletions
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