From b660ee27234eab5868c7a9454cfa2ea190c34cef Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Apr 2022 20:56:07 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 4a66c18b..e102b26f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -172,34 +172,6 @@ STATUS(){ if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then - # if [ "${srvc}" == "gitea" ]; then - # if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then - # SERVICE gitea stop q - # SET-PERMISSIONS gitea q - # SERVICE gitea start q - # fi - # if [ "$(${NCMD} systemctl is-active ${srvc})" != "active" ]; then - # if [ "${ST_ACTION}" != "check" ]; then - # echo -e "${idsCL[Red]}Not Running - could not fix${idsCL[Default]}" - # fi - # if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "${NM_SERVICES[${srvc}]} is down. Could not fix." | mail -s "${NM_NODETYPES[$NTYPE]}-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}; fi - # touch ${FOLDER}/${nip}-${srvc}.down - # else - # if [ "${ST_ACTION}" != "check" ]; then - # echo -e "${idsCL[Green]}Running - FIXED${idsCL[Default]}" - # fi - # if [ -f ${FOLDER}/${nip}-${srvc}.down ]; then - # if [ -f ${FOLDER}/${nip}-${srvc}.errtime ]; then - # toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}-${srvc}.errtime) - # else - # toterrtime=`date +%s`-$(stat -c %Y ${FOLDER}/${nip}-${srvc}.down) - # fi - # if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "${NM_SERVICES[${srvc}]} is back UP! (!!FIXED!!) It was down for $(SHOW_TIME ${toterrtime})" | mail -s "${NM_NODETYPES[$NTYPE]}-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}; fi - # rm -f ${FOLDER}/${nip}-${srvc}.down - # rm -f ${FOLDER}/${nip}-${srvc}.errtime - # fi - # fi - # else if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"