Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/config/cgmgr/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (*SystemdManager) MoveConmonToCgroup(cid, cgroupParent, conmonCgroup string
Value: dbus.MakeVariant(int(unix.SIGPIPE)),
}
logrus.Debugf("Running conmon under slice %s and unitName %s", cgroupParent, conmonUnitName)
if err := utils.RunUnderSystemdScope(pid, cgroupParent, conmonUnitName, killSignalProp); err != nil {
if err := utils.RunUnderSystemdScope(pid, cgroupParent, conmonUnitName, killSignalProp, systemdDbus.PropAfter("crio.service")); err != nil {
return "", errors.Wrapf(err, "failed to add conmon to systemd sandbox cgroup")
}
// return empty string as path because cgroup cleanup is done by systemd
Expand Down
1 change: 1 addition & 0 deletions pkg/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func (c *container) SpecAddAnnotations(ctx context.Context, sb *sandbox.Sandbox,
c.spec.AddAnnotation("org.systemd.property.CollectMode", "'inactive-or-failed'")
}
c.spec.AddAnnotation("org.systemd.property.DefaultDependencies", "true")
c.spec.AddAnnotation("org.systemd.property.After", "['crio.service']")
}

if configStopSignal != "" {
Expand Down