/usr/bin/cgroups-umount is in cgroup-lite 1.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
# Copyright 2011 Canonical, Inc
# Author: Serge Hallyn <serge.hallyn@canonical.com>
set -e
# We don't care to move tasks around gratuitously - just umount
# the cgroups
# If /sys/fs/cgroup is not mounted, we don't bother
if [ -z "`grep /sys/fs/cgroup /proc/mounts`" ]; then
exit 0
fi
# Don't try to get too smart, just optimistically try to umount all
# that we think we mounted
cd /sys/fs/cgroup
for d in `tail -n +2 /proc/cgroups | awk '{ print $1 }'`; do
umount $d || true
done
cd ..
umount /sys/fs/cgroup || true
exit 0
|