diff --git a/defaults.inc b/defaults.inc index ef104558..cf6ad931 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='5.6.53-03012026' +VERS='5.6.54-03042026' NM_BETA=false diff --git a/inc/status.inc b/inc/status.inc index a39a70be..41319732 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -698,10 +698,17 @@ STATUS_NODE(){ ######################################### ############ SERVICE REPAIRS ############ if [ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.disable ] && [ ! -f ${NM_TMPFOLDER}/${nip}~${srvc}.fix ] && [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${srvc}.down)) -gt 90 ]; then + if [ "${srvc}" == "pihole-FTL" ]; then ${SSHCMD} root@${nip} 'pihole -r' & >/dev/null 2>&1 touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix fi + + if [ "${srvc}" == "proxlb" ]; then + ${SSHCMD} root@${nip} 'systemctl restart proxlb' & >/dev/null 2>&1 + touch ${NM_TMPFOLDER}/${nip}~${srvc}.fix + fi + fi ######################################### #########################################