pkill/pgrep: add support for selecting processes by cgroup on Linux
Some of my cron jobs leak processes somehow, so I have other jobs that kill some processes from the systemd /system.slice/cron.service cgroup that the cron daemon and all cron jobs are put into. I'd like to replace the scripts that do this with pkill one-liners.
pkill --cgroup-namespace systemd --cgroup /system.slice/cron.service -u pabs
https://en.wikipedia.org/wiki/Cgroups
-- bye, pabs