]> 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:49 +0000 (20:42 -0600)
committerKevin Day <kevin@kevux.org>
Sat, 11 Mar 2023 02:42:49 +0000 (20:42 -0600)
commitf5e2a1a9e1a451531ad28d5472093e0e1a8265c4
treeba7cb6db4223fc4db7b7ff1734e692fc935911e6
parent2986b182f39ec570204b653cedba35f370a14803
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]