These files are always sourced (never executed directly), so the #!/bin/bash shebang is inert and misleading. Drop it consistently across rc.d/*, profile.d/*, and aliases.d/*.
18 lines
337 B
Plaintext
18 lines
337 B
Plaintext
# Use cgroups
|
|
if [ "$PS1" ] ; then
|
|
|
|
if [ -d /sys/fs/cgroup ] ; then
|
|
cdir=/sys/fs/cgroup
|
|
elif [ -d /dev/cgroup ]; then
|
|
cdir=/dev/cgroup
|
|
fi
|
|
|
|
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
|
|
unset -v cdir
|
|
fi
|
|
|
|
fi
|