summaryrefslogtreecommitdiffstats
path: root/etc/rc.reboot
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-01 12:49:06 -0400
committerjim-p <jimp@pfsense.org>2010-06-01 12:50:03 -0400
commit99f4210976a05e0450ab6d5df2b7c8cf87c29099 (patch)
tree1c10631d4a8b13da1ea04fa02b5127557d47978d /etc/rc.reboot
parent651e77c6f7c5d2250c69aeb1a3b3355439fcfec9 (diff)
downloadpfsense-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/rc.reboot')
-rwxr-xr-xetc/rc.reboot2
1 files changed, 2 insertions, 0 deletions
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: "
OpenPOWER on IntegriCloud