refactor: 移除全部启动脚本中的 sleep 延时与 services.yaml 中的 sleep_before
This commit is contained in:
1 parent
da8ebbf9e6
commit
09dc36d591
7 files changed
+4
-10
No files matched your search
@@ -5,5 +5,4 @@
|
|||||||
# "$@" 透传允许命令行临时覆盖任意配置项。
|
# "$@" 透传允许命令行临时覆盖任意配置项。
|
||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
# sleep 已移至 services.yaml 的 sleep_before 字段统一管理
|
|
||||||
exec ./build/ca.out "$@"
|
exec ./build/ca.out "$@"
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
sleep 1
|
|
||||||
exec python3 captcha_service.py
|
exec python3 captcha_service.py
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
sleep 1
|
|
||||||
exec ./confs2.bin
|
exec ./confs2.bin
|
||||||
+4
-4
@@ -41,7 +41,7 @@ services:
|
|||||||
cmd: bash /opt/micro_servers/ai_review/_run.sh
|
cmd: bash /opt/micro_servers/ai_review/_run.sh
|
||||||
args: ["--instance", "ai_review", "--log-level", "info"]
|
args: ["--instance", "ai_review", "--log-level", "info"]
|
||||||
depends_on: [db2]
|
depends_on: [db2]
|
||||||
sleep_before: 2
|
sleep_before: 0
|
||||||
|
|
||||||
# --- 文件服务 ---
|
# --- 文件服务 ---
|
||||||
- name: dnfs2
|
- name: dnfs2
|
||||||
@@ -78,7 +78,7 @@ services:
|
|||||||
cmd: bash /opt/micro_servers/smtp/_run.sh
|
cmd: bash /opt/micro_servers/smtp/_run.sh
|
||||||
args: ["--instance", "smtp", "--log-level", "info"]
|
args: ["--instance", "smtp", "--log-level", "info"]
|
||||||
depends_on: []
|
depends_on: []
|
||||||
sleep_before: 2
|
sleep_before: 0
|
||||||
|
|
||||||
# --- 前端静态资源 ---
|
# --- 前端静态资源 ---
|
||||||
- name: fsys
|
- name: fsys
|
||||||
@@ -161,13 +161,13 @@ services:
|
|||||||
- "--smtp-port"
|
- "--smtp-port"
|
||||||
- "8008"
|
- "8008"
|
||||||
depends_on: [db2]
|
depends_on: [db2]
|
||||||
sleep_before: 2
|
sleep_before: 0
|
||||||
|
|
||||||
- name: gateway
|
- name: gateway
|
||||||
cmd: bash /opt/micro_servers/gateway/_run.sh
|
cmd: bash /opt/micro_servers/gateway/_run.sh
|
||||||
args: ["--instance", "gateway", "--log-level", "info"]
|
args: ["--instance", "gateway", "--log-level", "info"]
|
||||||
depends_on: [db2]
|
depends_on: [db2]
|
||||||
sleep_before: 2
|
sleep_before: 0
|
||||||
|
|
||||||
# --- 验证码 ---
|
# --- 验证码 ---
|
||||||
- name: captcha2
|
- name: captcha2
|
||||||
|
|||||||
@@ -2,5 +2,4 @@
|
|||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
#exec ./main.dist/main.bin
|
#exec ./main.dist/main.bin
|
||||||
sleep 1
|
|
||||||
exec python3 dbv2.py
|
exec python3 dbv2.py
|
||||||
@@ -4,5 +4,4 @@
|
|||||||
# 启动时从 confs(CONFS_HOST:CONFS_PORT,默认 127.0.0.1:8010)拉取配置。
|
# 启动时从 confs(CONFS_HOST:CONFS_PORT,默认 127.0.0.1:8010)拉取配置。
|
||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
# sleep 已移至 services.yaml 的 sleep_before 字段统一管理
|
|
||||||
exec ./build/gateway.out "$@"
|
exec ./build/gateway.out "$@"
|
||||||
@@ -2,5 +2,4 @@
|
|||||||
cd "$(dirname "$0")" || exit
|
cd "$(dirname "$0")" || exit
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
#exec ./fsys.bin 1>/dev/null
|
#exec ./fsys.bin 1>/dev/null
|
||||||
sleep 2
|
|
||||||
exec python3 ./fsys.py 1>/dev/null
|
exec python3 ./fsys.py 1>/dev/null
|
||||||
Reference in new issue
Block a user