add a note on server shutdown...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
f00edc2b2d
commit
3b2e5aa5c2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue