infrafast / piwebpool

The first full open source Raspberry PI PHP web-based application that automates the control of swimming pool
https://infrafast.github.io/piwebpool/
3 stars 1 forks source link

auto-reboot script #27

Closed infrafast closed 7 years ago

infrafast commented 7 years ago

The script hourlycrontab,sh is executed periodically by the cron to 1) execute the scheduler state 2) execute Lua script 3) check for internet connectivity by pinging its external address if there is no internet conenxion available, the script reboot the raspberry after an attempt to restart network services. This will cause problem if the internet is cut for a couple of days: the raspberry will keep rebooting and the devices connected to it (like the pump) will continuously be switched on / off Instead, the script should maintain a counter that prevents him from rebooting if its counter reached a certain value so the raspberry is kept alive and continuing to operate without internet connection

infrafast commented 7 years ago

fixed hourlycrontab.sh with additionnal flag "noreboot.lflg"