Update vpnmon.sh

This commit is contained in:
2022-05-22 12:19:56 -05:00
parent 0cc03a290b
commit 717fd8b4c9

View File

@@ -45,8 +45,6 @@ STOP(){
sudo bash -c 'echo "d myVPN" > /var/run/xl2tpd/l2tp-control'
/usr/sbin/ipsec down L2TP-PSK
echo "$(date) - VPN stopped" >> $logfile
}
@@ -91,6 +89,12 @@ CHECK(){
rm -f /opt/idssys/vpnmon/vpn.stop
if [ -f /opt/idssys/vpnmon/vpn.fail* ]; then
echo "$(date) - VPN Fixed" >> $logfile
rm -f /opt/idssys/vpnmon/vpn.fail*
fi
else
echo "VPN system is stopped and must be restarted manually"
fi