include healthcheck in default actions
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROC=`ps cax | grep -E "mqtt-subscriber|mosquitto_sub|watch" | awk '{print $5}' | sort -u | wc -l`
|
||||
|
||||
if [ "$PROC" -eq "3" ] ; then
|
||||
exit 0
|
||||
else
|
||||
exit 99
|
||||
fi
|
||||
Reference in New Issue
Block a user