agent: increase graceful shutdown timeout

When triggering a leave through an INT/TERM signal the hard-coded
timeout of 5 seconds is too short to complete the leave successfully.
Therefore, the agent always times out.

This value should probably configurable.
pull/3121/head
Frank Schroeder 8 years ago
parent 9224daf585
commit fe69de3bba
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -813,7 +813,7 @@ func (cmd *Command) Run(args []string) int {
close(gracefulCh)
}()
gracefulTimeout := 5 * time.Second
gracefulTimeout := 15 * time.Second
select {
case <-signalCh:
return 1

Loading…
Cancel
Save