From 0e1547a87cfd51e4fedf1cb7837f77e4f66c4052 Mon Sep 17 00:00:00 2001 From: "niranjan.reddy" Date: Mon, 15 Feb 2016 20:10:03 +0530 Subject: 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 [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 --- package/cgroupfs-mount/S30cgroupfs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/cgroupfs-mount/S30cgroupfs (limited to 'package/cgroupfs-mount/S30cgroupfs') diff --git a/package/cgroupfs-mount/S30cgroupfs b/package/cgroupfs-mount/S30cgroupfs new file mode 100644 index 000000000..aa0a29b12 --- /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 -- cgit v1.2.3