wps33.sh 312 B

1234567891011
  1. #!/bin/bash
  2. while true; do
  3. running=$(ps -ef | grep "webproxys33" | grep -v "grep")
  4. if [ "$running" ]; then
  5. sleep 2
  6. else
  7. mv -f $PWD/webproxys33.out $PWD/../wproxys33.out
  8. echo "starting service ..."
  9. nohup $PWD/webproxys33 > $PWD/webproxys33.out 2>&1 &
  10. fi
  11. done