frp/tests/clean_test.sh

21 lines
494 B
Bash
Raw Normal View History

2016-05-17 19:13:37 +08:00
#!/bin/bash
pid=`ps aux|grep './../bin/frps -c ./conf/auto_test_frps.ini'|grep -v grep|awk {'print $2'}`
if [ -n "${pid}" ]; then
kill ${pid}
fi
pid=`ps aux|grep './../bin/frpc -c ./conf/auto_test_frpc.ini'|grep -v grep|awk {'print $2'}`
if [ -n "${pid}" ]; then
kill ${pid}
fi
2017-12-18 19:35:09 +08:00
pid=`ps aux|grep './../bin/frpc -c ./conf/auto_test_frpc_visitor.ini'|grep -v grep|awk {'print $2'}`
if [ -n "${pid}" ]; then
kill ${pid}
fi
2016-05-17 19:13:37 +08:00
rm -f ./frps.log
rm -f ./frpc.log
2017-12-18 19:35:09 +08:00
rm -f ./frpc_visitor.log