#!/bin/bash # linuxR_x86 wrapper for mtstrmd d=`/usr/bin/dirname $0`/.. cd $d TOP=`pwd` LD_LIBRARY_PATH="$TOP/lib:$TOP/../pdshared/lib:$TOP/../pdopensource/lib:$TOP/:$TOP/../../lib:$TOP/../../lib/ost-plugins" export LD_LIBRARY_PATH umask 0022 # Set mtstrmd resource limits ulimit -v unlimited > /dev/null 2>&1 ulimit -d unlimited > /dev/null 2>&1 ulimit -m unlimited > /dev/null 2>&1 ulimit -t unlimited > /dev/null 2>&1 ulimit -f unlimited > /dev/null 2>&1 ulimit -n unlimited > /dev/null 2>&1 echo -17 > /proc/$$/oom_adj 2>&1 echo -1000 > /proc/$$/oom_score_adj 2>&1 DD_ALIAS=$TOP/bin/mtstrmd export DD_ALIAS exec -a $DD_ALIAS $TOP/bin/.bin/mtstrmd "$@"