diff options
| author | Yoann QUERET <yoann@queret.net> | 2016-02-09 16:29:25 +0100 | 
|---|---|---|
| committer | Yoann QUERET <yoann@queret.net> | 2016-02-09 16:29:25 +0100 | 
| commit | a153cb1e281357300ae43454cba593b9cf0c3bde (patch) | |
| tree | 4430d0a1019e0f6cbe0e7935f3faaf613ffe343b /start-mux-mod.sh | |
| parent | bcd51f68047854efc73f53463e0091bae14b7ad9 (diff) | |
| download | dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.gz dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.bz2 dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.zip | |
Bye bye old script, welcome supervisor
Diffstat (limited to 'start-mux-mod.sh')
| -rwxr-xr-x | start-mux-mod.sh | 34 | 
1 files changed, 0 insertions, 34 deletions
| 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 - | 
