Authored by xiaofeng.yao@yoho.cn

添加守护进程脚本

#!/bin/bash
phpscriptDir=/Data/code/yoho-live
phpcmd=/Data/local/php-5.5.30/bin/php
phpscriptlog=/Data/logs/php/phpscript/
stillRunning=$(ps -ef |grep "room/stat" |grep -v "grep")
if [ -z "$stillRunning" ] ; then
nohup $phpcmd $phpscriptDir/yii room/stat >> $phpscriptlog/yoholive_room_stat.log 2>&1 &
fi
sleep 5
\ No newline at end of file
... ...