mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
agnet: fixing inversion of LeaveOnInt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user