From 45b99393e6dccd01be11612803414ccda260bf42 Mon Sep 17 00:00:00 2001 From: WJQSERVER Date: Tue, 5 Nov 2024 11:32:16 +0800 Subject: [PATCH] 24w22a --- docker/dockerfile/dev/init.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/dockerfile/dev/init.sh b/docker/dockerfile/dev/init.sh index 34d3477..c65df4a 100644 --- a/docker/dockerfile/dev/init.sh +++ b/docker/dockerfile/dev/init.sh @@ -22,6 +22,10 @@ fi /data/${APPLICATION}/${APPLICATION} -cfg /data/${APPLICATION}/config/config.toml > /data/${APPLICATION}/log/run.log 2>&1 & -while true; do - sleep 1 -done \ No newline at end of file +sleep 30 + +while [[ true ]]; do + # 健康检查 + curl -f http://localhost:8080/api/healthcheck || exit 1 + sleep 120 +done \ No newline at end of file