diff --git a/cgroups/systemd/apply_systemd.go b/cgroups/systemd/apply_systemd.go index 98e9a5d38..1251447a7 100644 --- a/cgroups/systemd/apply_systemd.go +++ b/cgroups/systemd/apply_systemd.go @@ -259,6 +259,7 @@ func (m *Manager) Apply(pid int) error { func (m *Manager) Destroy() error { m.mu.Lock() defer m.mu.Unlock() + theConn.StopUnit(getUnitName(m.Cgroups), "replace") if err := cgroups.RemovePaths(m.Paths); err != nil { return err }