Skip to content

Commit

Permalink
fix(cli) log forceful shutdown message upon SIGQUIT timeout
Browse files Browse the repository at this point in the history
The CLI `quit` command would even on a forceful exit still
print a 'graceful shutdown' message.

From #3061
  • Loading branch information
Tieske authored and thibaultcha committed Dec 1, 2017
1 parent 92ce76c commit c0745c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kong/cmd/quit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ local function execute(args)
if running then
log.verbose("nginx is still running at %s, forcing shutdown", conf.prefix)
assert(nginx_signals.stop(conf))
log("Timeout, Kong stopped forcefully")
return
end

log("Kong stopped (gracefully)")
Expand Down

0 comments on commit c0745c5

Please sign in to comment.