From 99f4210976a05e0450ab6d5df2b7c8cf87c29099 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 1 Jun 2010 12:49:06 -0400 Subject: Send TERM to sshd during shutdown/reboot to ensure that client sessions are kicked properly. Fixes #626. --- etc/rc.reboot | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/rc.reboot') diff --git a/etc/rc.reboot b/etc/rc.reboot index af5d874..b3ed50a 100755 --- a/etc/rc.reboot +++ b/etc/rc.reboot @@ -21,6 +21,8 @@ else /etc/rc.conf_mount_ro fi +killall -TERM sshd 2>&1 /dev/null + sleep 1 echo -n "Downing interfaces: " -- cgit v1.1 From 2d99dce73be4d5c020f8e6bdbbb61bc2e52fdd4c Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 2 Jun 2010 12:27:24 -0400 Subject: Don't kill ssh, it will stop the rest of the process when done from ssh. Instead, do not shut down network interfaces before a reboot. The original motive for doing this may no longer be necessary. Fixes #626 --- etc/rc.reboot | 9 --------- 1 file changed, 9 deletions(-) (limited to 'etc/rc.reboot') diff --git a/etc/rc.reboot b/etc/rc.reboot index b3ed50a..ecc47c2 100755 --- a/etc/rc.reboot +++ b/etc/rc.reboot @@ -21,15 +21,6 @@ else /etc/rc.conf_mount_ro fi -killall -TERM sshd 2>&1 /dev/null - sleep 1 -echo -n "Downing interfaces: " -for INTERFACE in `/sbin/ifconfig -l`; do - echo -n "$INTERFACE " - /sbin/ifconfig $INTERFACE down -done - /sbin/shutdown -r now - -- cgit v1.1