aboutsummaryrefslogtreecommitdiffstats
path: root/main/util-vserver/util-vserver.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/util-vserver/util-vserver.post-install')
-rw-r--r--main/util-vserver/util-vserver.post-install15
1 files changed, 0 insertions, 15 deletions
diff --git a/main/util-vserver/util-vserver.post-install b/main/util-vserver/util-vserver.post-install
deleted file mode 100644
index 9c8aad1e4c..0000000000
--- a/main/util-vserver/util-vserver.post-install
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-if [ -f /etc/vservers/.defaults/rlimits/nproc ]; then
- exit 0
-fi
-
-# calculate the nproc limit from amount of ram
-memtotal=$(awk '$1 == "MemTotal:" {print $2}' /proc/meminfo 2>/dev/null)
-nproc=$(( ${memtotal:-524288} / 256 ))
-
-# set a "sane" default nproc limit
-echo "Setting default nproc limit to $nproc"
-mkdir -p /etc/vservers/.defaults/rlimits
-echo $nproc > /etc/vservers/.defaults/rlimits/nproc
-