#!/bin/bash unset LD_ADDITIONAL_PATH unset TCMALLOC_SUPPORT_LIB unset TCMALLOC_LOGGER_LIB [ -z "$LC_ALL" ] && export LC_ALL=en_US.utf8 [ -r /usr/lib/Acronis/system_libs/8.2.1/config ] && . /usr/lib/Acronis/system_libs/8.2.1/config [ -r /usr/lib/Acronis/system_libs/config ] && . /usr/lib/Acronis/system_libs/config prepare_script=/usr/lib/Acronis/BackupAndRecovery/mms_prepare.sh [ -r $prepare_script ] && . $prepare_script IFS="" ulimit -s 2048 ulimit -n 1024 PUB_NAME="`basename $0`" if [ -x "/usr/lib/Acronis/BackupAndRecovery/Common/libtcmalloc.so" ]; then export LD_PRELOAD="$TCMALLOC_LOGGER_LIB /usr/lib/Acronis/BackupAndRecovery/Common/libtcmalloc.so $TCMALLOC_SUPPORT_LIB" [ -z "$TCMALLOC_STACKTRACE_METHOD" ] && export TCMALLOC_STACKTRACE_METHOD="generic_fp" fi if [ ! -z "$USE_SYSTEM_RUNTIME" ]; then LD_LIBRARY_PATH=/usr/lib/Acronis/BackupAndRecovery/Common else LD_LIBRARY_PATH=/usr/lib/Acronis/system_libs/8.2.1:/usr/lib/Acronis/BackupAndRecovery/Common fi if [ ! -z "$LD_ADDITIONAL_PATH" ]; then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_ADDITIONAL_PATH fi export LD_LIBRARY_PATH if [ -n "$TCMALLOC_LOGGER_OUT_FILE" ]; then exec $WRAPPER /usr/lib/Acronis/BackupAndRecovery/mms "$@" 2> "$TCMALLOC_LOGGER_OUT_FILE" else exec $WRAPPER /usr/lib/Acronis/BackupAndRecovery/mms "$@" > /dev/null 2>&1 fi