[mythtv-users] Script to restart backend after crash?

Steve Smith st3v3.sm1th at gmail.com
Fri Jan 18 16:16:13 UTC 2008


On 18/01/2008, Brian Phillips <brian.phillips at gmx.net> wrote:
>
> Piers Kittel wrote:
>
> > Does anyone have a script that automatically restarts the backend or
> > should I be fixing something else first?
> >
> > Thanks very much for your time in advance!
>
> You should probably be fixing something else first...but since you want
> the
> WAF up quickly, here's what I use to restart gaming servers.  I run it as
> a
> screen process as well so it seems like it's right up your alley.
>
> =======================================
> #!/bin/bash
>
> while [ 1 ]; do
>    /usr/local/bin/etded +set vm_game 0 +set net_port 27960 +set
> com_hunkmegs 64 +set com_zoneMegs 32 +set fs_basepath
> /usr/local/games/enemy-territory +set fs_game etf +set fs_homepath 27960
> +set sv_punkbuster 1 +exec etfconfig.cfg
>
>         rm -f core
>         sleep 1
> Done
>
> =====================================
> Just replace the line that starts with /usr/local/bin/etded to whatever
> your
> mythbackend startup line is.
>
> Brian
>
> >
> > Regards - Piers
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

I use "monit" to check on the status of the mythbackend every minute and run
a restart when it can't find the process.

Cheers

Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080118/48d06592/attachment.htm 


More information about the mythtv-users mailing list