update
This commit is contained in:
@@ -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
|
||||
#########################################
|
||||
#########################################
|
||||
|
||||
Reference in New Issue
Block a user