diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2019-03-29 12:05:57 +0100 |
---|---|---|
committer | Lukáš Nykrýn <lnykryn@redhat.com> | 2019-06-06 17:31:08 +0200 |
commit | 0330dd3457ecefbbca58eab8ed83f9ced56b0081 (patch) | |
tree | 480937679adaac2d82c52696bdbf9f224330a941 /etc | |
parent | fe85d7bfa8909059716d17802b89454dfb8f9f19 (diff) | |
download | initscripts-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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/init.d/functions | 17 |
1 files changed, 2 insertions, 15 deletions
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" |