refactor(LogicServer): 添加 start.sh 脚本并更新 Docker Compose 配置

- 新增 start.sh 脚本用于启动 Logic 服务器
- 更新 docker-compose.yml 文件,将 entrypoint 改为 start.sh
- 优化服务器启动流程,提高自动化程度
This commit is contained in:
aixianling
2025-01-10 16:49:05 +08:00
parent 3a65869268
commit 0affc11a93
2 changed files with 12 additions and 1 deletions

11
LogicServer/start.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
cd $(cd "$(dirname "$0")" && pwd)
path=`pwd`
./stop.sh
echo "======================【启动】========================"
datetime=`date "+%Y-%m-%d.%H:%M:%S"`
echo "["$datetime"] 正在启动 Logic 服务器 [logicserver_r]..."
$path/LogicServer/logicserver_r $path/LogicServer/LogicServerLinux.txt

View File

@@ -23,7 +23,7 @@ services:
volumes: volumes:
- ./LogicServer:/data/server/s1/LogicServer - ./LogicServer:/data/server/s1/LogicServer
- ./wch:/etc/yum/wch - ./wch:/etc/yum/wch
entrypoint: "/data/server/s1/LogicServer/run.sh" entrypoint: "/data/server/s1/LogicServer/start.sh"
network_mode: "host" network_mode: "host"
restart: unless-stopped restart: unless-stopped
environment: environment: