#!/bin/bash
-# Use this to quickly test run the server in valgrind
-#spawn-fcgi -p9005 -n ./valgrind.sh
-# Use this to run the server normally
-#./stream &
+
+# Check existence of program
+if [ ! -e "server" ]; then
+ (echo "Rebuild server.") 1>&2;
+ exit 1
+fi
+
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
- #./stream &
+ #spawn-fcgi -p9005 -n ./server
exit 0
fi
exit 1
fi
-# Check existence of program
-if [ ! -e "server" ]; then
- (echo "Rebuild server.") 1>&2;
- exit 1
-fi
-
# Rotate the logs
echo Rotating the system logs
logrotate -f /etc/logrotate.d/mctxserv.conf