check.sh 155 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 #! /bin/bash stat=$(ps -ef | grep '/Data/local/metric/plugin/Metric_Zk.py' | grep -v grep | wc -l) if [ ${stat} -eq 1 ]; then exit 0 else exit 1 fi