From 19e1e543004f086a97d890f88efde78fcc213530 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 2 Aug 2021 10:41:22 +0800 Subject: [PATCH] 1 --- scripts/publish_golang/restart.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/publish_golang/restart.sh b/scripts/publish_golang/restart.sh index faa8586..a8db017 100755 --- a/scripts/publish_golang/restart.sh +++ b/scripts/publish_golang/restart.sh @@ -2,6 +2,8 @@ source ./common.sh +export GOTRACEBACK=crash + pid=$(ps -ef|grep "${PROJECT_NAME} -n $2 -i $1"|grep -v grep|awk '{print $2}') echo $pid