Update uninstall function
This commit is contained in:
parent
63f445f07d
commit
78f649caff
|
|
@ -184,15 +184,9 @@ function uninstall_shadowsocks_libev(){
|
||||||
answer="n"
|
answer="n"
|
||||||
fi
|
fi
|
||||||
if [ "$answer" = "y" ]; then
|
if [ "$answer" = "y" ]; then
|
||||||
NODE_PID=`ps -ef | grep -v grep | grep -v ps | grep -i '/usr/local/bin/ss-server' | awk '{print $2}'`
|
ps -ef | grep -v grep | grep -v ps | grep -i "ss-server" > /dev/null 2>&1
|
||||||
if [ ! -z $NODE_PID ]; then
|
|
||||||
for pid in $NODE_PID
|
|
||||||
do
|
|
||||||
kill -9 $pid
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Shadowsocks-libev process[$pid] has been killed"
|
/etc/init.d/shadowsocks stop
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
# remove auto start script
|
# remove auto start script
|
||||||
update-rc.d -f shadowsocks remove
|
update-rc.d -f shadowsocks remove
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user