X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Frun.sh;h=1563d2e4de4141a61b8a3e98c958d8d96eca0d8c;hb=289794ba2dcbe6234e25e5d00531b26baee342b7;hp=0e52fd9f39d10b0e62516113d0a589fdc72053af;hpb=71c13fe3c04db7f93a69cbc6a6c7c3dc2393bf3f;p=matches%2FMCTX3420.git diff --git a/server/run.sh b/server/run.sh index 0e52fd9..1563d2e 100755 --- a/server/run.sh +++ b/server/run.sh @@ -83,6 +83,9 @@ echo "Parameters are: $parameters" # Run the program with parameters # TODO: Can tell spawn-fcgi to run the program as an unprivelaged user? # But first will have to work out how to set PWM/GPIO as unprivelaged user +# NOTE: Having the program automatically restart itself after a *FATAL ERROR* doesn't seem like such a good idea now +# (Some things that call Fatal happen under circumstances where they will just keep calling Fatal every time the program starts) +# Change the number of fails to 1 for now. We can potentially use different error codes for different types of errors, but that seems overkill. fails=0 while [ $fails -lt 1 ]; do spawn-fcgi -p9005 -n -- ./server $parameters