How to move a running process to the cgroup of a service running as same user

Solution Verified - Updated -

Issue

  • I have a custom service running as a user, I want to move some processes started manually as same user to this custom service

Environment

  • Red Hat Enterprise Linux 7
    • systemd
    • cgroupv1
  • Red Hat Enterprise Linux 8 and later
    • systemd
    • cgroupv1 and cgroupv2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content