From 5bf34d79fb3b4903b724f47e0d5ecd829bc9d544 Mon Sep 17 00:00:00 2001 From: "Harris.Chu" <1726587+HarrisChu@users.noreply.github.com> Date: Fri, 18 Nov 2022 15:36:29 +0800 Subject: [PATCH] fix restart if the process is stopped (#4849) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- scripts/nebula.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nebula.service b/scripts/nebula.service index fd240ed7801..05bddb3b959 100755 --- a/scripts/nebula.service +++ b/scripts/nebula.service @@ -157,7 +157,7 @@ function stop_by_pid_file { [[ ${VERBOSE} -ne 0 ]] && INFO "Send SIG${signame} to $(cat ${pid_file})" kill -s ${signame} $(cat ${pid_file}) else - [[ ${VERBOSE} -ne 0 ]] && INFO "No such process" + [[ ${VERBOSE} -ne 0 ]] && INFO "No such process" || code=$? fi }