[darkice] Re: watch darkice errors and restart if necessarily

  • From: JoergSorge <joergsorge@xxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Tue, 17 Jan 2012 20:48:34 +0100

Am 17.01.2012 00:13, schrieb Hungerburg:
> Then, this does not help you, Jörg, with running multiple darkice
> instances, but I remember you wrote, that you need that - do you really
> encode several different sources in parallel?

we need only to running multiple streams from ONE source.

My provisionally solution, explained before, works for me on the first
test-day.

I changed Niels rc-script for every stream and save my "instances" under
different names. I start the scripts one after the other one. But my
watch-script looks only for the stream to the external icecast.

#!/bin/bash
echo "Stream und Jack-Apps-starten..."

(       echo "10"
        sleep 2
        echo "# Meterbridge starten.."
        meterbridge -t dpm alsa_pcm:capture_1 alsa_pcm:capture_2 &
        
        echo "# Audio-Recorder starten.."
        sleep 2 
        rotter -a -f mp3 -b 192 -v -L flat -N Prot /home/xy-prot &
        
        echo "# Stream intern starten.."
        sleep 2
        cd /home/stream-tools
        message=$(./stream-intern.sh start)
        echo "# $message"

        echo "# Stream extern starten.."
        sleep 2
        message=$(./stream-extern-a.sh start)
        echo "# $message"

        echo "# Watchdog extern starten.."
        sleep 2
        gnome-terminal -x ./stream-extern-a-watch.sh start &
        echo "100"

)| zenity --progress \
           --title="stream" --text="starten..." --width=500 --pulsate
--auto-close


Regards,
Jörg




Other related posts: