python服務監控

#/bin/bashbash

count=`ps -ef | grep miaomu3_3.py | grep -v grep | wc -l`ide

if [ ${count} == 1 ]; thenit

    echo "服務進行中"class

elsegrep

    echo "服務已中止"di

fiview

相關文章
相關標籤/搜索