2.2. Removing Control Groups
Transient cgroups are released automatically as soon as the processes they contain finish. By passing the
systemd-runyou can keep the unit running after its processes finished to collect runtime information. To stop the unit gracefully, type:
systemctl stop name.
Replace name with the name of the service you wish to stop. To terminate one or more of the unit's processes, type as
systemctl kill name.service --kill-who=PID,... --signal=signal
Replace name with a name of the unit, for example httpd.service. Use
--kill-whoto select which processes from the cgroup you wish to terminate. To kill multiple processes at the same time, pass a comma-separated list of PIDs. Replace signal with the type of POSIX signal you wish to send to specified processes. Default is SIGTERM. For more information, see the
Persistent cgroups are released when the unit is disabled and its configuration file is deleted by running:
systemctl disable name.
where name stands for the name of the service to be disabled.