From 2068ad8de9462b14e39944b5bf93e180a934bcd3 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 17 Dec 2024 12:32:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=20run.sh=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 tail -f /dev/null 命令,使容器保持运行状态 - 注释掉未使用的日志文件尾部跟踪命令 --- run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run.sh b/run.sh index 50b472b..e6dec42 100755 --- a/run.sh +++ b/run.sh @@ -31,3 +31,8 @@ echo "执行命令:$path/Gateway/gateway$dm $path/Gateway/GateWay.txt" echo "["$datetime"] 正在启动 守护进程..." nohup $path/daemon.sh "$dm" "$path" & echo $datetime" 服务器启用完成!" + +tail -f /dev/null + +# timestamp=`date "+%Y%m%d"` +# tail -f $path/LogicServer/log/LogicServer_$timestamp.txt.log