clean_test.sh 494 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. pid=`ps aux|grep './../bin/frps -c ./conf/auto_test_frps.ini'|grep -v grep|awk {'print $2'}`
  3. if [ -n "${pid}" ]; then
  4. kill ${pid}
  5. fi
  6. pid=`ps aux|grep './../bin/frpc -c ./conf/auto_test_frpc.ini'|grep -v grep|awk {'print $2'}`
  7. if [ -n "${pid}" ]; then
  8. kill ${pid}
  9. fi
  10. pid=`ps aux|grep './../bin/frpc -c ./conf/auto_test_frpc_visitor.ini'|grep -v grep|awk {'print $2'}`
  11. if [ -n "${pid}" ]; then
  12. kill ${pid}
  13. fi
  14. rm -f ./frps.log
  15. rm -f ./frpc.log
  16. rm -f ./frpc_visitor.log