From: Kamalesh Babulal Date: Fri, 10 Feb 2023 21:47:23 +0000 (-0700) Subject: samples/config: add a sample systemd delegation configuration X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d67a7f9149d0e9a16f7a043bdc067cae96c3897;p=thirdparty%2Flibcgroup.git samples/config: add a sample systemd delegation configuration 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 Signed-off-by: Tom Hromatka (cherry picked from commit a06b236316d27cc19f5d0bbfd3ecf197328170c9) --- diff --git a/samples/config/cgconfig_systemd.conf b/samples/config/cgconfig_systemd.conf new file mode 100644 index 00000000..bfedf706 --- /dev/null +++ b/samples/config/cgconfig_systemd.conf @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: LGPL-2.1-only +# +# Copyright (c) 2023 Oracle and/or its affiliates. +# Author: Kamalesh Babulal +# + +#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; +#}