diff options
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 |
commit | d2674f3db82659a3c06db4d6c9927802e5b98b04 (patch) | |
tree | 7b568717aafcd68d4f53e7d8db39623febcb1a5e /source/n/openssh | |
parent | 9b554b9bf6ef8d35208c031610c49f4afbb92394 (diff) | |
download | current-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 '')
-rwxr-xr-x | source/n/openssh/openssh.SlackBuild | 2 | ||||
-rw-r--r-- | source/n/openssh/rc.sshd | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/n/openssh/openssh.SlackBuild b/source/n/openssh/openssh.SlackBuild index edb3cae53..716721618 100755 --- a/source/n/openssh/openssh.SlackBuild +++ b/source/n/openssh/openssh.SlackBuild @@ -30,7 +30,7 @@ PKG=$TMP/package-openssh PKGNAM=openssh VERSION=${VERSION:-$(echo openssh-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} 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 - |