RDAirplay crashed when the Shoutcast RLM tried to broadcast Bubblé and Beyoncé , we suspect the é to be the cause of the problem , changed to e...


Jim Stewart schreef op 24-2-2014 0:16:

Date: Sun, 23 Feb 2014 14:24:21 +0100

From: Rick <[email protected] <mailto:[email protected]>>

To: User discussion about the Rivendell Radio Automation System

<[email protected] <mailto:[email protected]>>

Subject: [RDD] more segfaults errors

Message-ID: <[email protected] <mailto:[email protected]>>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

ØCan I use silentjack to start RDAirplay automaticaly and how is this done?

Sure, I do. Our main system uses the silence since on a broadcast tools 8.2 switch, but we have a backup that uses silentjack:

I startup silentjack with a line like this:

silentjack -q -c rivendell_0:playout_0L -n Silence_Alarm -p 5 -g 60 silence_alarm

So this assumes I'm listening to "Rivendell_0:playout_0L" as yours might be different, then it calls a script I wrote called "silence_alarm".

In "silence_alarm" is a lot of logic to sort through different issues that can cause silence on our station (such as problem Internet feeds), but here is the part that handles a crashed rdairplay:

#!/bin/sh

if ( ! ps -C rdairplay > /dev/null 2>&1 ) ; then

  rdairplay &

  sleep 7

  echo LC BLACK Restarted: `date +'%b-%d %T'`'!' > /dev/shm/restart

  rmlsend --from-file=/dev/shm/restart

  sleep 15

  rmlsend PB\ 1!

  sleep 30

fi

Save this to a file somewhere like /usr/local/bin and mark is executable with "chmod +x silence_alarm"

So what this does is checks to see if rdairplay is running, and if it isn't, it starts it. I also have it leaving a message about this in /dev/shm/restart (which is a ramdisk-like space on my Debian system, you may need to save it elsewhere), and then also sends it to the "label" area of rdairplay so that there is notice that this happened and when.

Finally after the rdairplay gets running and its log automatically gets reloaded, it starts is playing again with the "PB 1!" command.



_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to