From a153cb1e281357300ae43454cba593b9cf0c3bde Mon Sep 17 00:00:00 2001 From: Yoann QUERET Date: Tue, 9 Feb 2016 16:29:25 +0100 Subject: Bye bye old script, welcome supervisor --- start-mux-mod.sh | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 start-mux-mod.sh (limited to 'start-mux-mod.sh') diff --git a/start-mux-mod.sh b/start-mux-mod.sh deleted file mode 100755 index 96e05c2..0000000 --- a/start-mux-mod.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# -# Launch the multiplexer and the modulator - -if [[ -e site/multiplex.mux && -e site/mod.ini && -e site/mail-warning.txt ]] -then - - while true - do - odr-dabmux -e site/multiplex.mux | sudo odr-dabmod -C site/mod.ini - R=$? - - MAILTO=$(cat site/mail-warning.txt) - - if [[ "$MAILTO" != "" ]] ; then - NOW=$(date) - mail -s "MUX and MOD restart" "$MAILTO" << EOF -The mux and mod were restarted at -$NOW - -The return code was $R - -EOF - - fi - - sleep 15 - done -else - echo "Incomplete site configuration !" - echo "Check that the site/ folder exists" - exit 1 -fi - -- cgit v1.2.3