From ef03badceba59ad3df444f41c02251118810d422 Mon Sep 17 00:00:00 2001 From: st33v Date: Mon, 20 Nov 2017 10:19:00 +1100 Subject: logging always and lengthened timer to 10mins --- wlanWDog.timer | 2 +- wlanWDprowl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wlanWDog.timer b/wlanWDog.timer index c75347f..62d4ab0 100644 --- a/wlanWDog.timer +++ b/wlanWDog.timer @@ -3,7 +3,7 @@ Description=Walk the wireless watchdog [Timer] OnActiveSec=5min -OnUnitActiveSec=1min +OnUnitActiveSec=10min #OnCalendar=*:*:00,30 Unit=wlanWDog.service diff --git a/wlanWDprowl.sh b/wlanWDprowl.sh index 8bc2c70..95a710d 100755 --- a/wlanWDprowl.sh +++ b/wlanWDprowl.sh @@ -23,7 +23,7 @@ wirelessLink=$(networkctl | awk '/wlan/ {print $2}') wlanStatus=$(networkctl status ${wirelessLink} | awk '/State:/ {print $2}') logline="$(date) ${wlanStatus}" # write all to log for now. This will show if I'm still alive. -echo ${logline} +echo ${logline} >> ${logdir}/wlanStatus.log if [ ${wlanStatus} != "routable" ]; then # we have lost wireless, so log the occurrence and restart the service -- cgit v1.3