[oe-commits] Paul Eggleton : openssh: avoid screen sessions being killed on disconnect with systemd

git at git.openembedded.org git at git.openembedded.org
Thu Nov 6 11:43:25 UTC 2014


Module: openembedded-core.git
Branch: daisy
Commit: 6e6aeb7cca52b92a0c8013473e2b8bb18738a119
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6e6aeb7cca52b92a0c8013473e2b8bb18738a119

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Wed Nov  5 21:08:51 2014 -0800

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)

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-connectivity/openssh/openssh/sshd at .service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/openssh/openssh/sshd at .service b/meta/recipes-connectivity/openssh/openssh/sshd at .service
index 4eda659..bb2d68e 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd at .service
+++ b/meta/recipes-connectivity/openssh/openssh/sshd at .service
@@ -8,3 +8,4 @@ ExecStart=- at SBINDIR@/sshd -i
 ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
 StandardInput=socket
 StandardError=syslog
+KillMode=process



More information about the Openembedded-commits mailing list