diff options
Diffstat (limited to 'vespabase/src/common-env.sh')
-rwxr-xr-x | vespabase/src/common-env.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespabase/src/common-env.sh b/vespabase/src/common-env.sh index 76f5d69b3a4..8dfcf8d2c4c 100755 --- a/vespabase/src/common-env.sh +++ b/vespabase/src/common-env.sh @@ -145,6 +145,10 @@ consider_fallback VESPA_USE_NO_VESPAMALLOC $(get_var "no_vespamalloc_list") fixlimits () { + # Cannot bump limits when not root (for testing) + if [ "${VESPA_UNPRIVILEGED}" = yes ]; then + return 0 + fi # number of open files: if varhasvalue file_descriptor_limit; then ulimit -n ${file_descriptor_limit} || exit 1 |