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



监控服务是否存在,如果不存在就创建
 
#!/bin/sh  www.2cto.com  
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
 
 

相关内容

    暂无相关文章