public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* sshd kill all sessions on deamon stop
@ 2025-08-24  6:25 Peer Dietzmann
  2025-08-24 12:55 ` Michael Tremer
  0 siblings, 1 reply; 3+ messages in thread
From: Peer Dietzmann @ 2025-08-24  6:25 UTC (permalink / raw)
  To: development; +Cc: Peer Dietzmann

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)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-24 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-24  6:25 sshd kill all sessions on deamon stop Peer Dietzmann
2025-08-24 12:55 ` Michael Tremer
2025-08-24 17:59   ` Peer Dietzmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox