]> Kevux Git Server - fll/commit
Update: Add example contrroller script for running under systemd using cgroups.
authorKevin Day <kevin@kevux.org>
Sat, 11 Mar 2023 02:42:53 +0000 (20:42 -0600)
committerKevin Day <kevin@kevux.org>
Sat, 11 Mar 2023 02:42:53 +0000 (20:42 -0600)
commit43a0450d87b33acf0f99b409a3a292c4866cbb41
tree7c058d03d63c18f5b0eb0eeab9ff0633c0ab2e5f
parent6de068557c50c0dc5027056a9fd60aa24fd1bfb6
Update: Add example contrroller script for running under systemd using cgroups.

This provides an example cgroups setup.
I found that on systems with cgroups2, this is harder to figure out.
This turned out to be because of the existing setup used by many systemd systems.

This provides an example that I managed to get to work under some systems in some circumstances.
The biggest problems is that the subtree needs to be passed along and that tends to not be done by default.
The current user, if not root, usually lacks the privileges to do so.

The best case would be to use the cgroups generation when running as root to setup the appropriate user.
Then, use the program startup examples as the normal user.
This should show the cgroup situation.

I would not be surprised if the cgroup setup scripts has to be altered (not just the user and group name).
level_3/controller/data/settings/controller/example/cgroup_example/entries/chromium.entry [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/entries/eclipse.entry [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/entries/firefox.entry [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/entries/setup_cgroups.entry [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/rules/program/chromium.rule [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/rules/program/eclipse.rule [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/rules/program/firefox.rule [new file with mode: 0644]
level_3/controller/data/settings/controller/example/cgroup_example/rules/setup/cgroups.rule [new file with mode: 0644]