rc-cgroup: make sure the tasks file exists before adding the pid
This commit is contained in:
parent
35f2f1ec73
commit
bee59c68c5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user