shutdown_sogouservice.sh 900 B

1234567891011121314151617181920212223242526272829303132
  1. #/bin/bash
  2. echo "[SOGOULOG] === Kill monitor Start === "
  3. MONITOR=sogoumonitor.sh
  4. ID=`ps -ef | grep "$MONITOR" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
  5. for id in $ID
  6. do
  7. echo "[SOGOULOG] === $MONITOR is running, Kill monitor === "
  8. kill -9 $id
  9. echo "[SOGOULOG] === Kill monitor Done === "
  10. done
  11. WEBSRV=sogouImeWebSrv
  12. ID=`ps -ef | grep "$WEBSRV" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
  13. for id in $ID
  14. do
  15. echo "[SOGOULOG] === $WEBSRV is running, Kill Service === "
  16. kill -9 $id
  17. echo "[SOGOULOG] === Kill sogouImeWebSrv Done === "
  18. done
  19. echo "[SOGOULOG] === Kill Service Start === "
  20. SOGOUIME=sogouImeService
  21. ID=`ps -ef | grep "$SOGOUIME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
  22. for id in $ID
  23. do
  24. echo "[SOGOULOG] === $SOGOUIME is running, Kill Service === "
  25. kill -9 $id
  26. echo "[SOGOULOG] === Kill sogouImeService Done === "
  27. done
  28. echo "[SOGOULOG] === Kill Service Done === "