Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #=====================
- while :
- do
- echo "Current DIR is " $PWD
- stillRunning=$(ps -ef |grep "/data/wwwroot/lottery_v2/CORE/think auto" |grep -v "grep")
- if [ "$stillRunning" ] ; then
- echo "running..."
- else
- echo "restart ..."
- /usr/local/php/bin/php /data/wwwroot/lottery_v2/CORE/think auto
- echo "TWS service was exited!"
- fi
- sleep 10
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement