Skip to content

Commit eb62080

Browse files
committed
修复singbox启动逻辑问题
1 parent 92041b6 commit eb62080

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

singbox/start.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,15 @@ fi
9393
#如果只有hy2和vmess+ws
9494

9595
if [[ "$type" == "1.2" || "$type" == "2" || "$type" == "3.2" ]]; then
96-
r=$(ps aux | grep cloudflare | grep -v grep | awk '{print $2}')
97-
if [ -n "$r" ]; then
96+
r=$(ps aux | grep cloudflare | grep -v grep | awk '{print $2}')
97+
if [ -n "$r" ]; then
9898
echo $r
9999
kill -9 $r
100-
fi
101-
fi
102-
chmod +x ./serv00sb
103-
if ! ps aux | grep serv00sb | grep -v "grep" >/dev/null; then
100+
fi
101+
chmod +x ./serv00sb
102+
if ! ps aux | grep serv00sb | grep -v "grep" >/dev/null; then
104103
nohup ./serv00sb run -c ./config.json >/dev/null 2>&1 &
105-
fi
104+
fi
106105
elif [[ "$type" == "1" || "$type" == "3" || "$type" == "1.1" || "$type" == "3.1" ]]; then
107106
chmod +x ./serv00sb
108107
if ! ps aux | grep serv00sb | grep -v "grep" >/dev/null; then

0 commit comments

Comments
 (0)