wpt.sh 302 B

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