From 34b40b07093998cc6474b7a55956e62e647e62fd Mon Sep 17 00:00:00 2001 From: Peter Wagner <​tripolar@gmx.at> Date: Mon, 13 Dec 2010 18:39:14 +0000 Subject: [PATCH] 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 ec76bb6ab..58b5ce720 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