Skip to content

Conversation

@dqminh
Copy link
Contributor

@dqminh dqminh commented Jun 1, 2016

Fix #801

Delegate is only available in systemd >218, applying it for older systemd will
result in an error. Therefore we should check for it when testing systemd
properties.


hasDelegate = true
dl := newProp("Delegate", true)
if _, err := theConn.StartTransientUnit(scope, "replace", []systemdDbus.Property{dl}, nil); err != nil {
Copy link
Member

@cyphar cyphar Jun 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have to destroy this unit first (the same name is used by the previous test)? Or is this dealt with by the "stop unit logic"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops i must have done something wrong when checking it in. Fixed now.

Delegate is only available in systemd >218, applying it for older systemd will
result in an error. Therefore we should check for it when testing systemd
properties.

Signed-off-by: Daniel, Dao Quang Minh <[email protected]>
@dqminh dqminh force-pushed the runc-systemd-version branch from f89d45b to d5ecf5c Compare June 1, 2016 14:32
@crosbymichael
Copy link
Member

crosbymichael commented Jun 1, 2016

LGTM

Approved with PullApprove

@crosbymichael crosbymichael added this to the 1.0.0 milestone Jun 1, 2016
@mrunalp
Copy link
Contributor

mrunalp commented Jun 1, 2016

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 9e0c1e7 into opencontainers:master Jun 1, 2016
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants