diff --git a/command/agent/command.go b/command/agent/command.go index 41ebd3953..1f206b4e6 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -325,7 +325,7 @@ WAIT: // Check if we should do a graceful leave graceful := false - if sig == os.Interrupt && !config.LeaveOnInt { + if sig == os.Interrupt && config.LeaveOnInt { graceful = true } else if sig == syscall.SIGTERM && config.LeaveOnTerm { graceful = true