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

相关文章
相关标签/搜索