Browse Source

Update check_service.sh

liberodark 7 years ago
parent
commit
1a7b94236c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      check_service.sh

+ 8 - 0
check_service.sh

@@ -338,5 +338,13 @@ case $STATUS_MSG in
         echo "Is there a typo in the command or service configuration?: $STATUS_MSG"
         exit $UNKNOWN
         ;;
+*0\ loaded*)
+        echo "$STATUS_MSG"
+        exit $OK
+        ;;
+*[^0]\ loaded*)
+        echo "$STATUS_MSG"
+        exit $WARNING
+        ;;
 esac