1
0
Fork 0
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:
Solomon Hykes 2013-10-26 14:28:53 -07:00
parent c1ae1a0e1c
commit 464ded79fc

View file

@ -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)
}()