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