cli: restart consensus service on USR2
Fix #1949. Also drop wallet from the ServerConfig since it's not used in any meaningful way after this change.
This commit is contained in:
parent
bf92966633
commit
5a7fa2d3df
6 changed files with 30 additions and 22 deletions
|
@ -276,6 +276,7 @@ func (s *service) Start() {
|
|||
// Shutdown implements the Service interface.
|
||||
func (s *service) Shutdown() {
|
||||
if s.started.CAS(true, false) {
|
||||
s.log.Info("stopping consensus service")
|
||||
close(s.quit)
|
||||
<-s.finished
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue