#!/bin/bash
# filename: check
# program : 判断进行是否存在,并重新启动
# www.jb200.com
function check(){
count=`ps -ef |grep $1 |grep -v "grep" |wc -l`
#echo $count
if [ 0 == $count ];then
nohup python /runscript/working/$1 &
fi
}
#添加执行权限
# chmod +x check
#调用脚本
./check behaviors.py