diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/rc-cgroup.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 389e8a07..9329b57b 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -77,7 +77,7 @@ cgroup_add_service() # cgroups. But may lead to a problems where that inheriting # is needed. for d in /sys/fs/cgroup/* ; do - echo 0 > "${d}"/tasks + [ -f "${d}"/tasks ] && echo 0 > "${d}"/tasks done openrc_cgroup=/sys/fs/cgroup/openrc |