監控服務是否存在,如果不存在就創建
#!/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
~