mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update shadowsocks.tpl
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user