git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edited dilatometer
[matches/MCTX3420.git]
/
server
/
run.sh
diff --git
a/server/run.sh
b/server/run.sh
index
1563d2e
..
1890059
100755
(executable)
--- a/
server/run.sh
+++ b/
server/run.sh
@@
-6,13
+6,16
@@
if [ ! -e "server" ]; then
exit 1
fi
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
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
# Use this to run the server normally
- #spawn-fcgi -p9005 -n ./server
+ spawn-fcgi -p9005 -n -- ./server $parameters
exit 0
fi
exit 0
fi
@@
-75,10
+78,7
@@
fi;
#adc_device_path=$(dirname $(find /sys -name *AIN0))
#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?
# Run the program with parameters
# TODO: Can tell spawn-fcgi to run the program as an unprivelaged user?
UCC
git Repository :: git.ucc.asn.au