Update uninstall function
This commit is contained in:
parent
1495cfa812
commit
8d94d39891
|
|
@ -232,15 +232,9 @@ function uninstall_shadowsocks(){
|
||||||
answer="n"
|
answer="n"
|
||||||
fi
|
fi
|
||||||
if [ "$answer" = "y" ]; then
|
if [ "$answer" = "y" ]; then
|
||||||
pid_ss=`ps -ef | grep -v grep | grep -v ps | grep -i "ssserver" | awk '{print $2}'`
|
ps -ef | grep -v grep | grep -v ps | grep -i "ssserver" > /dev/null 2>&1
|
||||||
if [ ! -z $pid_ss ]; then
|
|
||||||
for pid in $pid_ss
|
|
||||||
do
|
|
||||||
kill -9 $pid
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Shadowsocks process[$pid] has been killed"
|
/etc/init.d/shadowsocks stop
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
checkos
|
checkos
|
||||||
if [ "$OS" == 'CentOS' ]; then
|
if [ "$OS" == 'CentOS' ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user