Advertisement
Guest User

Untitled

a guest
Mar 27th, 2018
918
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. sudo mkdir /sys/fs/cgroup/memory/notover4g
  4. echo 4294967296 | sudo tee /sys/fs/cgroup/memory/notover4g/memory.limit_in_bytes > /dev/null
  5. echo "$$" | sudo tee /sys/fs/cgroup/memory/notover4g/cgroup.procs > /dev/null
  6.  
  7. exec "$@"
Advertisement
RAW Paste Data Copied
Advertisement