On 14/11/2009 at 15:39, Subflow.net wrote:
>It might be cool in the futur if i can receive an email alert when
>Unfortunately I don't know how to set up this alert.
>Somebody have a tips to share ?
Have monit  watch your pidfile.
From: David Baelde <david.baelde@gm...> - 2009-11-14 16:34:08
Yes, Monit is the safest way: if liquidsoap crashes very badly, it
won't be able to perform any shutdown routines like sending mail
anyway. We use a solution like that for dolebrai.net -- except I
didn't know about monit so I wrote my own watchdog in shell script. I
start the monitoring process from the liquidsoap script, using
system("the script"). Juste one thing: add a little sleeping time
before probing the PID file, it's created a short while after the
execution of the configuration script.
Another solution, perhaps lighter but certainly weaker, is to use a
script and call it via system() and in an on_shutdown() callback. This
would still work most of the time, when liquidsoap crashes "cleanly",
i.e. when you see "Shutdown started!"
Get latest updates about Open Source Projects, Conferences and News.