X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Frun.sh;h=1890059168c4d88cba152299ef783bd818d08c33;hb=HEAD;hp=76a7a486b577b26732e3d06e9ec822150ae0ed4f;hpb=c3a1f0d6a3c293a45ab9f24a63b43e3f5aa7bd15;p=matches%2FMCTX3420.git diff --git a/server/run.sh b/server/run.sh index 76a7a48..1890059 100755 --- a/server/run.sh +++ b/server/run.sh @@ -6,13 +6,16 @@ if [ ! -e "server" ]; then exit 1 fi +# Get the parameters +. parameters +echo "Parameters are: $parameters" if [[ "$(uname -m)" != *arm* ]]; then echo Not running on the BBB # Use this to quickly test run the server in valgrind #spawn-fcgi -p9005 -n ./valgrind.sh # Use this to run the server normally - spawn-fcgi -p9005 -n ./server + spawn-fcgi -p9005 -n -- ./server $parameters exit 0 fi @@ -75,10 +78,7 @@ fi; #adc_device_path=$(dirname $(find /sys -name *AIN0)) -# Get the parameters -. parameters -echo "Parameters are: $parameters" # Run the program with parameters # TODO: Can tell spawn-fcgi to run the program as an unprivelaged user?