Update nodemgmt-scripts.sh
This commit is contained in:
@@ -2058,14 +2058,17 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
ssh root@${nip} /bin/systemctl stop ${stc}
|
ssh root@${nip} /bin/systemctl stop ${stc}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
/bin/systemctl start gitea &
|
/bin/systemctl start ${stc} &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
/bin/systemctl stop gitea &
|
for stc in "${services_to_check[@]}"; do
|
||||||
/bin/systemctl stop pdnsadmin.service pdnsadmin.socket &
|
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service"
|
||||||
|
/bin/systemctl stop ${stc} &
|
||||||
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(systemctl is-active nginx)" != "active" ]; then
|
if [ "$(systemctl is-active nginx)" != "active" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user