From adaadd938078687374b1a8be0e8867cb191ed4ef Mon Sep 17 00:00:00 2001 From: WhatTheMike Date: Fri, 23 Dec 2022 20:28:37 +0000 Subject: [PATCH] Fixed monitoring script not rebooting the raspberries. --- templates/nutmon.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nutmon.sh.j2 b/templates/nutmon.sh.j2 index 2a10670..e56088a 100644 --- a/templates/nutmon.sh.j2 +++ b/templates/nutmon.sh.j2 @@ -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