diff options
Diffstat (limited to 'bin/lxc-setup')
-rwxr-xr-x | bin/lxc-setup | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/lxc-setup b/bin/lxc-setup deleted file mode 100755 index 08824a8..0000000 --- a/bin/lxc-setup +++ /dev/null @@ -1,20 +0,0 @@ -# https://wiki.debian.org/LXC -# https://lists.linuxcontainers.org/pipermail/lxc-devel/2014-February/008088.html -# https://lists.debian.org/debian-user/2015/05/msg00162.html -# https://wiki.debian.org/LXC/SimpleBridge -# http://box.matto.nl/lxconlaptop.html -# https://coderwall.com/p/k0gutq/clean-lxc-nat-configuration-debian-wheezy - -for d in /sys/fs/cgroup/* -do - f=$(basename $d) - echo "looking at $f" - if [ "$f" = "cpuset" ]; then - echo 1 | sudo tee -a $d/cgroup.clone_children; - elif [ "$f" = "memory" ]; then - echo 1 | sudo tee -a $d/memory.use_hierarchy; - fi - sudo mkdir $d/$USER - sudo chown -R $USER: $d/$USER - echo $$ > $d/$USER/tasks -done |