Update shadowsocks.tpl

This commit is contained in:
midoks
2020-06-05 17:31:58 +08:00
parent 8e567943a6
commit f4e5e411c1
@@ -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"