#!/bin/sh # # startup script for matrpc. This script calls run_matrpc.sh, which sets the LD_LIBRARY_PATH and # runs matrpc processes. Since LD_LIBRARY_PATH is not normally passed through sudo, it needs to # be set in run_matrpc.sh. # # 12/23/2008 Stefan Tomic - Initial Version # 11/10/2009 Stefan Tomic - generalized code #set to user that will run the matrpc process #using root is strongly discouraged and would pose a significant security risk runas="matrpcuser" #path to run_matrpc.sh run_matrpc_path=/usr/local/bin sudo -H -u $runas $run_matrpc_path/run_matrpc.sh