diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2013-07-25 20:33:51 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-07-25 20:33:51 -0500 |
commit | bee59c68c5ff5be426e68ecb603d4cc26542f4af (patch) | |
tree | 87c4b2d4fa4a95aee4a10f90f0bd0f746ec1b167 /sh/rc-cgroup.sh.in | |
parent | 35f2f1ec73aa6754764d573ea3e1cce938b3ee9a (diff) |
rc-cgroup: make sure the tasks file exists before adding the pid
Diffstat (limited to 'sh/rc-cgroup.sh.in')
-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 |