]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
samples/config: add a sample systemd delegation configuration
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 3 Feb 2023 07:05:09 +0000 (07:05 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Feb 2023 21:44:25 +0000 (14:44 -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>
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;
+#}