From cf6eae552ef005ab11030d6740de553d2b46ef52 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Tue, 27 May 2014 16:56:48 +0800 Subject: [PATCH] Fix a uninstall function problem --- shadowsocks-libev.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks-libev.sh b/shadowsocks-libev.sh index 73b41ba..e754611 100644 --- a/shadowsocks-libev.sh +++ b/shadowsocks-libev.sh @@ -177,10 +177,11 @@ function install(){ # Uninstall Shadowsocks-libev function uninstall_shadowsocks_libev(){ - ps -ef | grep -v grep | grep -v ps | grep -i ss-server > /dev/null 2>&1 + ps -ef | grep -v grep | grep -v ps | grep -i "ss-server" > /dev/null 2>&1 if [ $? -eq 0 ]; then /etc/init.d/shadowsocks stop fi + chkconfig shadowsocks off # delete config file rm -f /etc/shadowsocks/config.json # delete shadowsocks