From f4e5e411c1292ddb89cc130d2cad88afb997a5b5 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 5 Jun 2020 17:31:58 +0800 Subject: [PATCH] Update shadowsocks.tpl --- plugins/shadowsocks/init.d/shadowsocks.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/shadowsocks/init.d/shadowsocks.tpl b/plugins/shadowsocks/init.d/shadowsocks.tpl index ec6dba351..80f2e2102 100755 --- a/plugins/shadowsocks/init.d/shadowsocks.tpl +++ b/plugins/shadowsocks/init.d/shadowsocks.tpl @@ -19,12 +19,15 @@ p_start(){ if [ "$isStart" == "" ];then echo -e "Starting shadowsocks... \c" + + ssserver -c $ROOT_PATH/shadowsocks/shadowsocks.json -d start sleep 0.3 isStart=$(ps -ef | grep shadowsocks | grep -v grep | awk '{print $2}') if [ "$isStart" == '' ];then echo -e "\033[31mError: shadowsocks service startup failed.\033[0m" return; fi + echo -e "\033[32mdone\033[0m" else echo "Starting shadowsocks(pid $isStart) already running"