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