歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 監控服務是否存在,如果不存在就創建

監控服務是否存在,如果不存在就創建

日期:2017/3/1 17:02:18   编辑:關於Linux

監控服務是否存在,如果不存在就創建 #!/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 ~
Copyright © Linux教程網 All Rights Reserved