Hi All,
I discovered, that while rebooting an IPFire instance via SSH my
terminal keeps stuck after the broadcast message because IPFire isn't
closing all active connection correctly. As it is annoying especially
when using SSH in SSH connections because all connections have to be
reopened manually, I thought of adding just one line to the init-script
that closes all running sessions.
Best regards,
Peer
diff --git a/src/initscripts/system/sshd b/src/initscripts/system/sshd
index e5a9931af..e69904c61 100644
--- a/src/initscripts/system/sshd
+++ b/src/initscripts/system/sshd
@@ -50,6 +50,7 @@ case "$1" in
stop)
boot_mesg "Stopping SSH Server..."
killproc -p "/var/run/sshd.pid" /usr/sbin/sshd || true
+ killall sshd-session
;;
reload)