[systemd-devel] Move processes into cgroups based on UID

azurit at pobox.sk azurit at pobox.sk
Thu Oct 1 12:04:29 UTC 2020


Hi,

i'm trying to use systemd to moving all newely created processes into  
various cgroups based on UID - i think the user slices is the  
solution. But i'm failing.

My very first question: Is systemd able to do this? I want from  
systemd to act similar to cgrulesengd tool (  
https://linux.die.net/man/8/cgrulesengd ) i.e. everytime a process is  
created or changes UID, it will be moved to cgroup(s) accociated with  
that UID. No matter if the process was a login into SSH, cron job or  
PHP FPM child.

Thanks for info.

azur




More information about the systemd-devel mailing list