From 3b2e5aa5c22d61ae13704598b9a064fe952258a7 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 15 May 2017 15:50:41 +0200 Subject: [PATCH] add a note on server shutdown... Signed-off-by: Antonio Murdaca --- server/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/server.go b/server/server.go index 1b0570c8..fb00dc54 100644 --- a/server/server.go +++ b/server/server.go @@ -521,6 +521,10 @@ func (s *Server) cleanupSandboxesOnShutdown() { // Shutdown attempts to shut down the server's storage cleanly func (s *Server) Shutdown() error { + // why do this on clean shutdown! we want containers left running when ocid + // is down for whatever reason no?! + // notice this won't trigger just on system halt but also on normal + // ocid.service restart!!! s.cleanupSandboxesOnShutdown() _, err := s.store.Shutdown(false) return err