On Sun, 13 Jul 2014, Dan Gruner wrote:
Could someone point me in the direction of a script that will monitor RDAirPlay and restart the application if it quits.
On occasions where I'm running a program such as a streaming encoder that occasionally crashes, I'll start it from a script. The script executes a while(1) loop (i.e. loop forever), then forks. The child process starts the program while the parent waits. If the program crashes, the child process terminates, whereupon the parent will fork a new one and restart the program.
I've never done this with rdairplay. My principal concern would be that rdairplay always starts at the beginning of a log (i.e. at midnight), so if it dies at, say, 10 AM, the next thing listeners will hear is the midnight top-of-hour ID and the first piece of music in the midnight hour.
Some other automation systems -- AudioVault in particular -- will resume where they left off, but I've never been able to get Rivendell to do that.
Trying to simply restart RDAirPlay seems to always result in a "Multiple Instances Not Allowed" error, which either requires the service to be killed or the machine to be re-started.
I believe you'll find there's a file called .rdairplaylock; you need to delete it before restarting rdairplay.
Rob _______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
