refactor: 移除全部启动脚本中的 sleep 延时与 services.yaml 中的 sleep_before

This commit is contained in:
qing committed 2026-08-10 16:05:26 +00:00
1 parent da8ebbf9e6
commit 09dc36d591
7 files changed
+4 -10

No files matched your search

-1
View File
@@ -5,5 +5,4 @@
# "$@" 透传允许命令行临时覆盖任意配置项。
cd "$(dirname "$0")" || exit
# sleep 已移至 services.yaml 的 sleep_before 字段统一管理
exec ./build/ca.out "$@"
-1
View File
@@ -1,5 +1,4 @@
#!/bin/bash
cd "$(dirname "$0")" || exit
source venv/bin/activate
sleep 1
exec python3 captcha_service.py
-1
View File
@@ -1,4 +1,3 @@
#!/bin/bash
cd "$(dirname "$0")" || exit
sleep 1
exec ./confs2.bin
+4 -4
View File
@@ -41,7 +41,7 @@ services:
cmd: bash /opt/micro_servers/ai_review/_run.sh
args: ["--instance", "ai_review", "--log-level", "info"]
depends_on: [db2]
sleep_before: 2
sleep_before: 0
# --- 文件服务 ---
- name: dnfs2
@@ -78,7 +78,7 @@ services:
cmd: bash /opt/micro_servers/smtp/_run.sh
args: ["--instance", "smtp", "--log-level", "info"]
depends_on: []
sleep_before: 2
sleep_before: 0
# --- 前端静态资源 ---
- name: fsys
@@ -161,13 +161,13 @@ services:
- "--smtp-port"
- "8008"
depends_on: [db2]
sleep_before: 2
sleep_before: 0
- name: gateway
cmd: bash /opt/micro_servers/gateway/_run.sh
args: ["--instance", "gateway", "--log-level", "info"]
depends_on: [db2]
sleep_before: 2
sleep_before: 0
# --- 验证码 ---
- name: captcha2
-1
View File
@@ -2,5 +2,4 @@
cd "$(dirname "$0")" || exit
source ./venv/bin/activate
#exec ./main.dist/main.bin
sleep 1
exec python3 dbv2.py
-1
View File
@@ -4,5 +4,4 @@
# 启动时从 confs(CONFS_HOST:CONFS_PORT,默认 127.0.0.1:8010)拉取配置。
cd "$(dirname "$0")" || exit
# sleep 已移至 services.yaml 的 sleep_before 字段统一管理
exec ./build/gateway.out "$@"
-1
View File
@@ -2,5 +2,4 @@
cd "$(dirname "$0")" || exit
source ./venv/bin/activate
#exec ./fsys.bin 1>/dev/null
sleep 2
exec python3 ./fsys.py 1>/dev/null