您的位置:首页 > 运维架构

监控服务是否存在,如果不存在就创建

2013-01-09 16:33 246 查看
#!/bin/sh

kill_result=`ps aux | grep 'index.php' | grep -v grep | wc -l`

if [ $kill_result -eq 0 ] ; then

nohup /usr/local/php/bin/php /var/www/q5.youxigu.com/pay/index.php &

fi

kill_result=`ps aux | grep 'autosn_processing.php' | grep -v grep | wc -l`

if [ $kill_result -eq 0 ] ; then

nohup /usr/local/php/bin/php /var/www/q5.youxigu.com/getsn/autosn_processing.php &

fi

~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐