diff options
author | jim-p <jimp@pfsense.org> | 2010-06-01 12:49:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-01 12:50:03 -0400 |
commit | 99f4210976a05e0450ab6d5df2b7c8cf87c29099 (patch) | |
tree | 1c10631d4a8b13da1ea04fa02b5127557d47978d /etc | |
parent | 651e77c6f7c5d2250c69aeb1a3b3355439fcfec9 (diff) | |
download | pfsense-99f4210976a05e0450ab6d5df2b7c8cf87c29099.zip pfsense-99f4210976a05e0450ab6d5df2b7c8cf87c29099.tar.gz |
Send TERM to sshd during shutdown/reboot to ensure that client sessions are kicked properly. Fixes #626.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.halt | 2 | ||||
-rwxr-xr-x | etc/rc.reboot | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.halt b/etc/rc.halt index 4f3d1ef..d208ccd 100755 --- a/etc/rc.halt +++ b/etc/rc.halt @@ -9,5 +9,7 @@ fi sleep 1 +killall -TERM sshd 2>&1 /dev/null + /sbin/shutdown -p now 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: " |