summaryrefslogtreecommitdiffstats
path: root/source/n/openssh/rc.sshd
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-07-03 22:27:28 +0000
committer Eric Hameleers <alien@slackware.com>2024-07-04 00:58:29 +0200
commitd2674f3db82659a3c06db4d6c9927802e5b98b04 (patch)
tree7b568717aafcd68d4f53e7d8db39623febcb1a5e /source/n/openssh/rc.sshd
parent9b554b9bf6ef8d35208c031610c49f4afbb92394 (diff)
downloadcurrent-d2674f3db82659a3c06db4d6c9927802e5b98b04.tar.gz
current-d2674f3db82659a3c06db4d6c9927802e5b98b04.tar.xz
Wed Jul 3 22:27:28 UTC 202420240703222728
n/openssh-9.8p1-x86_64-2.txz: Rebuilt. rc.sshd: also shut down sshd-session processes with "stop" function. This shuts down connections cleanly instead of them having to time out. Thanks to Petri Kaukasoina.
Diffstat (limited to '')
-rw-r--r--source/n/openssh/rc.sshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/n/openssh/rc.sshd b/source/n/openssh/rc.sshd
index eea6c6a74..64a8b5d57 100644
--- a/source/n/openssh/rc.sshd
+++ b/source/n/openssh/rc.sshd
@@ -27,7 +27,8 @@ sshd_start() {
}
sshd_stop() {
- killall sshd
+ killall --ns $$ sshd-session 2> /dev/null
+ killall --ns $$ sshd
}
sshd_restart() {
@@ -61,4 +62,3 @@ case "$1" in
*)
echo "usage $0 start|stop|restart"
esac
-