2014年10月12日

守护进程shell脚本

摘要: #! /bin/bashPROGRAM="main"while true; do sleep 1 PRO_NOW=`ps aux | grep $PROGRAM | grep -v grep| wc -l` if [ $PRO_NOW -lt 1 ]; then ./$PROG... 阅读全文

posted @ 2014-10-12 20:21 kangbry 阅读(210) 评论(0) 推荐(0)

导航