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