diff options
| author | niranjan.reddy <niranjan.reddy@rockwellcollins.com> | 2016-02-15 20:10:03 +0530 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-03-20 23:53:50 +0100 |
| commit | 0e1547a87cfd51e4fedf1cb7837f77e4f66c4052 (patch) | |
| tree | d44f4e70639993a6aed09bc59eca097f48f40ab5 /package/cgroupfs-mount/S30cgroupfs | |
| parent | 1f80ca33904e86cf4dc517c3e8e7316d659a1271 (diff) | |
| download | buildroot-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/S30cgroupfs | 34 |
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 |

