fix
This commit is contained in:
parent
6260d29dc7
commit
e6470719bb
|
@ -51,17 +51,22 @@ for server_dir in "${server_dirs[@]}"; do
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# 定义目录和screen名称
|
if [ -n "$single_server_name" ]; then
|
||||||
dir_path="./proxyserver"
|
echo "no proxyserver restart"
|
||||||
screen_name="proxyserver"
|
else
|
||||||
|
# 定义目录和screen名称
|
||||||
|
dir_path="./proxyserver"
|
||||||
|
screen_name="proxyserver"
|
||||||
|
|
||||||
# 进入目录
|
# 进入目录
|
||||||
cd $dir_path
|
cd $dir_path
|
||||||
# 检查是否存在screen session
|
# 检查是否存在screen session
|
||||||
if screen -list | grep -q "$screen_name"; then
|
if screen -list | grep -q "$screen_name"; then
|
||||||
# 结束存在的screen session
|
# 结束存在的screen session
|
||||||
screen -S $screen_name -X quit
|
screen -S $screen_name -X quit
|
||||||
|
fi
|
||||||
|
go build
|
||||||
|
# 启动新的screen session并运行go程序
|
||||||
|
screen -dmS $screen_name -L ./$screen_name
|
||||||
fi
|
fi
|
||||||
go build
|
|
||||||
# 启动新的screen session并运行go程序
|
|
||||||
screen -dmS $screen_name -L ./$screen_name
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user