=== modified file 'zsh-functions/zsv_hook_cgroups' --- zsh-functions/zsv_hook_cgroups 2014-02-25 21:26:10 +0000 +++ zsh-functions/zsv_hook_cgroups 2014-02-17 07:41:00 +0000 @@ -1,3 +1,3 @@ -if [[ -f /proc/cgroups && -d /sys/fs/cgroup ]]; then +if [[ -d /sys/fs/cgroup ]]; then zsv_hooks+=zsv_set_cgroup fi === modified file 'zsh-functions/zsv_set_cgroup' --- zsh-functions/zsv_set_cgroup 2014-02-25 21:26:10 +0000 +++ zsh-functions/zsv_set_cgroup 2014-02-14 19:20:50 +0000 @@ -1,19 +1,12 @@ -if ! grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then +if grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then mkdir -p $zsv_cgroup && echo $$ >>$zsv_cgroup/tasks else # [[ -d $zsv_cgroup:h ]] && rm -rf $zsv_cgroup:h mkdir -p $zsv_cgroup:h - mount -t cgroup -o name=zsv zsv $zsv_cgroup:h + mount -t cgroup -o cpuacct zsv $zsv_cgroup:h if grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then mkdir -p $zsv_cgroup && echo $$ >>$zsv_cgroup/tasks fi fi -local cgroup rest -while read cgroup rest; do - if [[ -d /sys/fs/cgroup/$cgroup ]]; then - mkdir -p /sys/fs/cgroup/$cgroup/zsv/$zsv_name && \ - echo $$ >>/sys/fs/cgroup/$cgroup/zsv/$zsv_name/tasks - fi -done