a guest Jun 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- while :
- echo "Current DIR is " $PWD
- stillRunning=$(ps -ef |grep "/data/wwwroot/lottery_v2/CORE/think auto" |grep -v "grep")
- if [ "$stillRunning" ] ; then
- echo "running..."
- echo "restart ..."
- /usr/local/php/bin/php /data/wwwroot/lottery_v2/CORE/think auto
- echo "TWS service was exited!"
- sleep 10
RAW Paste Data