Fixed monitoring script not rebooting the raspberries.
This commit is contained in:
parent
546874eea8
commit
adaadd9380
@ -15,7 +15,7 @@ while [ $upsstat -ne 0 ]; do
|
||||
if [ $upsstat -eq 1 ]; then
|
||||
let retries=retries-1
|
||||
if [ $retries -le 0 ]; then
|
||||
reboot
|
||||
/usr/sbin/shutdown -r now
|
||||
fi
|
||||
sleep $retry_delay
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user