For not shutdown triggered...
This commit is contained in:
parent
d75ce9de9b
commit
9ce1be3b00
|
@ -344,7 +344,7 @@ func (c *ServerCommand) Run(args []string) int {
|
||||||
|
|
||||||
// Wait for shutdown
|
// Wait for shutdown
|
||||||
shutdownTriggered := false
|
shutdownTriggered := false
|
||||||
for {
|
for !shutdownTriggered {
|
||||||
select {
|
select {
|
||||||
case <-c.ShutdownCh:
|
case <-c.ShutdownCh:
|
||||||
c.Ui.Output("==> Vault shutdown triggered")
|
c.Ui.Output("==> Vault shutdown triggered")
|
||||||
|
@ -358,9 +358,6 @@ func (c *ServerCommand) Run(args []string) int {
|
||||||
c.Ui.Error(fmt.Sprintf("Error(s) were encountered during reload: %s", err))
|
c.Ui.Error(fmt.Sprintf("Error(s) were encountered during reload: %s", err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if shutdownTriggered {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue