]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
samples/config: add a sample systemd delegation configuration
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 10 Feb 2023 21:47:23 +0000 (14:47 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Feb 2023 21:47:26 +0000 (14:47 -0700)
Add a sample cgconfig.conf configuration file, that serves as a template
for systemd delegation and how users can control the resources limit
allocation such as cpu, memory, or any other valid cgroup settings for
the systemd slice/scope cgroup created.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit a06b236316d27cc19f5d0bbfd3ecf197328170c9)

samples/config/cgconfig_systemd.conf [new file with mode: 0644]

diff --git a/samples/config/cgconfig_systemd.conf b/samples/config/cgconfig_systemd.conf
new file mode 100644 (file)
index 0000000..bfedf70
--- /dev/null
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: LGPL-2.1-only
+#
+# Copyright (c) 2023 Oracle and/or its affiliates.
+# Author: Kamalesh Babulal <kamalesh.babulal@oracle.com>
+#
+
+#systemd {
+#        slice = database.slice;
+#        scope = db.scope;
+#        setdefault = yes;
+#}
+#
+#systemd {
+#        slice = database.slice;
+#        scope = house_keeping.scope;
+#        pid = 3456;
+#}
+#
+#systemd {
+#        slice = others.slice;
+#        scope = server.scope;
+#}