summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-11-05 21:08:51 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-06 11:40:37 +0000
commit6c576a4ac85307a5c851bee91a567cae3ea5a43b (patch)
treeb42de720e15cb3a4a3bfd46ecb73e1e588b4d27a
parent9f5ea81070ab3b2666c868be57d8359b6d97a17f (diff)
downloadpoky-6c576a4ac85307a5c851bee91a567cae3ea5a43b.tar.gz
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). (From OE-Core master rev: 3c238dff41fbd3687457989c7b17d22b2cc844be) (From OE-Core rev: 6e6aeb7cca52b92a0c8013473e2b8bb18738a119) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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
8ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID 8ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
9StandardInput=socket 9StandardInput=socket
10StandardError=syslog 10StandardError=syslog
11KillMode=process