mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Close sqlite persistent connection on SIGINT, SITERM or SIGKILL
This commit is contained in:
parent
c1ae1a0e1c
commit
464ded79fc
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ func (srv *Server) Daemon() error {
|
|||
sig := <-c
|
||||
log.Printf("Received signal '%v', exiting\n", sig)
|
||||
utils.RemovePidFile(srv.runtime.config.Pidfile)
|
||||
srv.Close()
|
||||
os.Exit(0)
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in a new issue