summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-virtualization/recipes-containers/cgroup-lite/files/cgroups-init
blob: e5040240e3a934b6e74288ea0f52a27af2ec0e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
### BEGIN INIT INFO
# Provides:          cgroups mount
# Required-Start:    $network $remote_fs
# Required-Stop:     $network $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: mount/unmount cgroups
### END INIT INFO

# must start before libvirtd is run
case "$1" in
  start)
        echo -n "Mounting cgroups..."
		/bin/cgroups-mount
        echo "Done"
        ;;
  stop)
        echo -n "Unmounting cgroups..."
		/bin/cgroups-umount
        echo "Done"
        ;;
  *)
        echo "Usage: /etc/init.d/cgroups-init {start|stop}"
        exit 1
        ;;
esac
OpenPOWER on IntegriCloud