summaryrefslogtreecommitdiffstats
path: root/package/cgroupfs-mount/S30cgroupfs
diff options
context:
space:
mode:
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