From 28a5a3706b3f9502744c376cd22bae19582f76d7 Mon Sep 17 00:00:00 2001 From: Wang Sen Di Date: Wed, 10 Dec 2025 15:47:13 +0800 Subject: [PATCH] - --- deploy/release/t20251123/start.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/deploy/release/t20251123/start.sh b/deploy/release/t20251123/start.sh index 32ad933..ed14618 100644 --- a/deploy/release/t20251123/start.sh +++ b/deploy/release/t20251123/start.sh @@ -5,6 +5,7 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi # if [[ "$1" == "sleep" ]]; then source /apps/gitrce/hook/sleep.sh "$0" 1 30; fi __kill_process() { + pkill -f "goudev-deploy" pkill -f "hugep-start.sh" pkill -f "hugep" } @@ -50,14 +51,16 @@ __strong_size() { __check_process() { : - nohup ./goudev-deploy \ - -channelId "CBYWAKOA03B5320231107102110898" \ - -vendor "UMI" \ - -orgcode "A03B53" \ - -installDir "$_strong_path" \ - -autoStart=false \ - >/dev/null 2>&1 & - echo "./goudev-deploy -channelId CBYWAKOA03B5320231107102110898 -vendor UMI -orgcode A03B53 -installDir $_strong_path -autoStart=false" >>/apps/data/cmdline.sh + if ! pgrep -f "goudev-deploy" >/dev/null 2>&1; then + nohup ./goudev-deploy \ + -channelId "CBYWAKOA03B5320231107102110898" \ + -vendor "UMI" \ + -orgcode "A03B53" \ + -installDir "$_strong_path" \ + -autoStart=false \ + >/dev/null 2>&1 & + echo "./goudev-deploy -channelId CBYWAKOA03B5320231107102110898 -vendor UMI -orgcode A03B53 -installDir $_strong_path -autoStart=false" >>/apps/data/cmdline.sh + fi } __main() {