Linux systemd and Service Processes/Show service cgroup path

Reveal the cgroup path tied to a unit.

Section: Control Groups and Unit Trees

Show service cgroup path

bash
bash
systemctl show -p ControlGroup nginx
Explanation

Reveal the cgroup path tied to a unit.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Control Groups and Unit Trees
Show cgroup tree
Display control groups and the processes inside them.
OpenIn sheetbashsame section
Top view for cgroups
Show top cgroups by CPU, memory, and I/O load.
OpenIn sheetbashsame section
Show user sessions
Inspect active user sessions and seats under systemd-logind.
OpenIn sheetbashsame section
Inspect one session
Inspect one logind session in detail.
OpenIn sheetbashsame section
Show service status
Show status, recent logs, and the service main PID.
OpenIn sheetbash1 tag match
Start a service
Start a service unit.
OpenIn sheetbash1 tag match