diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a7575dc1..0b123b68 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1204,10 +1204,10 @@ SKIP_SERVER_CHECKS(){ systemctl stop keepalived >/dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}" fi - elif [ "${1}" == "off" ] || ([ -f ${NM_TMPFOLDER}/.skip ] && [ "${1}" == "" ]); then + elif [ "${1}" == "off" ] || [ "${1}" == "reboot" ] || ([ -f ${NM_TMPFOLDER}/.skip ] && [ "${1}" == "" ]); then rm -f ${NM_TMPFOLDER}/.skip echo -e "${idsCL[LightGreen]}Server has been re-enabled for Node-Manager Status Checks${idsCL[Default]}" - if [ "$(systemctl list-units --full -all | grep keepalived | grep loaded)" ]; then + if [ "${1}" != "reboot" ] && [ "$(systemctl list-units --full -all | grep keepalived | grep loaded)" ]; then echo -en "${idsCL[Green]}Starting${idsCL[LightCyan]} Keepalived ... ${idsCL[Default]}" systemctl start keepalived >/dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}"