9 lines
173 B
Bash
Executable File
9 lines
173 B
Bash
Executable File
#!/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 |