diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/rc-cgroup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh index fafc3b37..392c8b3d 100644 --- a/sh/rc-cgroup.sh +++ b/sh/rc-cgroup.sh @@ -189,6 +189,7 @@ cgroup2_set_limits() { local cgroup_path cgroup_path="$(cgroup2_find_path)" + [ -z "${cgroup_path}" ] && return 0 mountinfo -q "${cgroup_path}"|| return 0 rc_cgroup_path="${cgroup_path}/${RC_SVCNAME}" [ ! -d "${rc_cgroup_path}" ] && mkdir "${rc_cgroup_path}" |