From fd345bf5c79f48fce52c1d8c7b72731b08772e1b Mon Sep 17 00:00:00 2001 From: Peter Wagner <​tripolar@gmx.at> Date: Mon, 13 Dec 2010 18:39:14 +0000 Subject: [PATCH] [openssh] use the new shutdown function and kill all openssh sessions when the system goes down SVN-Revision: 24549 --- net/openssh/files/sshd.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index ec76bb6ab5..58b5ce7206 100644 --- a/net/openssh/files/sshd.init +++ b/net/openssh/files/sshd.init @@ -23,3 +23,7 @@ start() { stop() { kill $(cat /var/run/sshd.pid) } + +shutdown() { + killall sshd +} -- 2.30.2