X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=server%2Frun.sh;h=1890059168c4d88cba152299ef783bd818d08c33;hb=0654fb285c91da103314610cd4f27295e3da38f3;hp=1563d2e4de4141a61b8a3e98c958d8d96eca0d8c;hpb=289794ba2dcbe6234e25e5d00531b26baee342b7;p=matches%2FMCTX3420.git diff --git a/server/run.sh b/server/run.sh index 1563d2e..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 + #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?