Fix libs/cgroups.bash

This commit is contained in:
Xavier Logerais (Numericable - Ingénierie Système) 2014-07-03 17:19:46 +02:00
parent 3e71e8c2bb
commit 6584d34e5a

View File

@ -9,7 +9,7 @@ if [ "$PS1" ] ; then
cdir=/dev/cgroup
fi
if [ -n "$cdir/user" ]; then
if [ -d "$cdir/user" ]; then
mkdir -p -m 0700 $cdir/user/$$ > /dev/null 2>&1
/bin/echo $$ > $cdir/user/$$/tasks
/bin/echo '1' > $cdir/user/$$/notify_on_release