Skip to content

systemd-run --user --scope ... doesn't work with unified cgroup hierarchy #3388

@gdamjan

Description

@gdamjan

Submission type

  • [ x ] Bug report
  • Request for enhancement (RFE)

systemd version the issue has been seen with

230 and 230+84 commits

Used distribution

Arch Linux (testing)

In case of bug report: Expected behaviour you didn't see

systemd-run --user --scope bash -c "sleep 100" should start a new scope and service in the user systemd instance.

In case of bug report: Unexpected behaviour you saw

systemd-run fails and the journal has run-r9c9b0f8d4fd14753bd9d4446b7a4c1ef.scope: Failed to add PIDs to scope's control group: Permission denied

The system was booted with systemd.unified_cgroup_hierarchy=1. Removing that option (and rebooting) makes systemd-run --scope work again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingcgroupsregression ⚠️A bug in something that used to work correctly and broke through some recent commit

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions