[mythtv-users] Script to restart backend after crash?
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
> WAF up quickly, here's what I use to restart gaming servers. I run it as
> screen process as well so it seems like it's right up your alley.
> 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
> Just replace the line that starts with /usr/local/bin/etded to whatever
> mythbackend startup line is.
> > 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
I use "monit" to check on the status of the mythbackend every minute and run
a restart when it can't find the process.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mythtv-users