From f3194422555011d54800fcb8fc107c1076dd1957 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 28 Nov 2019 14:26:24 +0800 Subject: [PATCH] 1 --- server/tools/scripts/ci/wsproxy/restart.sh | 2 ++ server/tools/scripts/ci/wsproxy/start_instance.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/tools/scripts/ci/wsproxy/restart.sh b/server/tools/scripts/ci/wsproxy/restart.sh index 7d3ed21..29fb070 100755 --- a/server/tools/scripts/ci/wsproxy/restart.sh +++ b/server/tools/scripts/ci/wsproxy/restart.sh @@ -1,5 +1,7 @@ #!/bin/bash +source ./common.sh + python manage.py restart $1 $2 echo 'success' diff --git a/server/tools/scripts/ci/wsproxy/start_instance.sh b/server/tools/scripts/ci/wsproxy/start_instance.sh index 0e8bc81..125ded7 100755 --- a/server/tools/scripts/ci/wsproxy/start_instance.sh +++ b/server/tools/scripts/ci/wsproxy/start_instance.sh @@ -1,4 +1,6 @@ #!/bin/bash +source ./common.sh + cd bin -nohup ./$3 -i $1 -n $2 >> $3$2_$1.out 2>&1 & +nohup ./${PROJECT_NAME} -i $1 -n $2 >> ${PROJECT_NAME}$2_$1.out 2>&1 &