summaryrefslogtreecommitdiffstats
path: root/package/cgroupfs-mount/S30cgroupfs
diff options
context:
space:
mode:
authorniranjan.reddy <niranjan.reddy@rockwellcollins.com>2016-02-15 20:10:03 +0530
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-20 23:53:50 +0100
commit0e1547a87cfd51e4fedf1cb7837f77e4f66c4052 (patch)
treed44f4e70639993a6aed09bc59eca097f48f40ab5 /package/cgroupfs-mount/S30cgroupfs
parent1f80ca33904e86cf4dc517c3e8e7316d659a1271 (diff)
downloadbuildroot-0e1547a87cfd51e4fedf1cb7837f77e4f66c4052.tar.gz
buildroot-0e1547a87cfd51e4fedf1cb7837f77e4f66c4052.zip
cgroupfs-mount: new package
This package consists of scripts that setup cgroups at boot without doing any cgroup management or classification of tasks into cgroups Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com> [Thomas: - rename to cgroupfs-mount to match upstream - add proper hash, since hashes should be added for github sourced packages - fix minor typos in the init script - fix the license file information.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/cgroupfs-mount/S30cgroupfs')
-rw-r--r--package/cgroupfs-mount/S30cgroupfs34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/cgroupfs-mount/S30cgroupfs b/package/cgroupfs-mount/S30cgroupfs
new file mode 100644
index 0000000000..aa0a29b120
--- /dev/null
+++ b/package/cgroupfs-mount/S30cgroupfs
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Set up cgroupfs mounts.
+#
+
+start() {
+ printf "Mounting cgroupfs hierarchy: "
+ /usr/bin/cgroupfs-mount
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
+}
+stop() {
+ printf "Unmounting cgroupfs hierarchy: "
+ /usr/bin/cgroupfs-umount
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
+}
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ restart
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
OpenPOWER on IntegriCloud