Skip to content

Commit

Permalink
fix: apisix restart failed (#10495)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanqingwu committed Dec 22, 2023
1 parent 06aa250 commit ad24b63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -805,15 +805,14 @@ local function start(env, ...)

local ok, err, err_no = signal.kill(pid, signone)
if ok then
print("APISIX is running...")
return
print("APISIX is running... and now kill ...")
-- no such process
elseif err_no ~= errno.ESRCH then
print(err)
return
end

print("nginx.pid exists but there's no corresponding process with pid ", pid,
print("nginx.pid exists ", pid,
", the file will be overwritten")
end

Expand Down

0 comments on commit ad24b63

Please sign in to comment.