Skip to content

Commit

Permalink
shutdown properly via API call
Browse files Browse the repository at this point in the history
Signed-off-by: António Meireles <[email protected]>
  • Loading branch information
AntonioMeireles committed Jul 8, 2016
1 parent 8ee8a00 commit 7c81b88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ func Start() (err error) {
Daemon.Unlock()
Daemon.Jobs.Wait()

if err = skydns.Process.Kill(); err != nil {
log.Err(err.Error())
}

if err = etcd.Process.Kill(); err != nil {
log.Err(err.Error())
}
log.Info("gone!")
return
}

0 comments on commit 7c81b88

Please sign in to comment.