Guest User

Untitled

a guest
Jun 17th, 2019
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #=====================
  3. while :
  4. do
  5. echo "Current DIR is " $PWD
  6. stillRunning=$(ps -ef |grep "/data/wwwroot/lottery_v2/CORE/think auto" |grep -v "grep")
  7. if [ "$stillRunning" ] ; then
  8. echo "running..."
  9. else
  10. echo "restart ..."
  11. /usr/local/php/bin/php /data/wwwroot/lottery_v2/CORE/think auto
  12. echo "TWS service was exited!"
  13. fi
  14. sleep 10
  15. done
RAW Paste Data