aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2019-03-29 12:05:57 +0100
committerLukáš Nykrýn <lnykryn@redhat.com>2019-06-06 17:31:08 +0200
commit0330dd3457ecefbbca58eab8ed83f9ced56b0081 (patch)
tree480937679adaac2d82c52696bdbf9f224330a941
parentfe85d7bfa8909059716d17802b89454dfb8f9f19 (diff)
downloadinitscripts-0330dd3457ecefbbca58eab8ed83f9ced56b0081.tar
initscripts-0330dd3457ecefbbca58eab8ed83f9ced56b0081.tar.gz
initscripts-0330dd3457ecefbbca58eab8ed83f9ced56b0081.tar.bz2
initscripts-0330dd3457ecefbbca58eab8ed83f9ced56b0081.tar.xz
initscripts-0330dd3457ecefbbca58eab8ed83f9ced56b0081.zip
rc.d/functions: remove support cgroups
Now with systemd, this does not work pretty well and users really should use systemd unit-files for this.
-rw-r--r--doc/sysconfig.txt8
-rw-r--r--etc/rc.d/init.d/functions17
2 files changed, 2 insertions, 23 deletions
diff --git a/doc/sysconfig.txt b/doc/sysconfig.txt
index a848ba42..5878d38f 100644
--- a/doc/sysconfig.txt
+++ b/doc/sysconfig.txt
@@ -3,14 +3,6 @@
Generic options:
-/etc/sysconfig/*
-
- CGROUP_DAEMON=
- List of control groups that the daemon will be run in. For example,
- CGROUP_DAEMON="cpu:daemons cpuacct:/" will run it in the daemons
- group for the CPU controller, and the '/' group for the CPU accounting
- controller.
-
/etc/sysconfig/authconfig
used by authconfig to store information about the system's user
diff --git a/etc/rc.d/init.d/functions b/etc/rc.d/init.d/functions
index dd6a3165..97f09d13 100644
--- a/etc/rc.d/init.d/functions
+++ b/etc/rc.d/init.d/functions
@@ -290,27 +290,14 @@ daemon() {
# if they set NICELEVEL in /etc/sysconfig/foo, honor it
[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
- # if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
- if [ -n "${CGROUP_DAEMON}" ]; then
- if [ ! -x /bin/cgexec ]; then
- echo -n "Cgroups not installed"; warning
- echo
- else
- cgroup="/bin/cgexec";
- for i in $CGROUP_DAEMON; do
- cgroup="$cgroup -g $i";
- done
- fi
- fi
-
# Echo daemon
[ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"
# And start it up.
if [ -z "$user" ]; then
- $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
+ $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
else
- $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
+ $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"