<br><br>
<div><span class="gmail_quote">On 18/01/2008, <b class="gmail_sendername">Brian Phillips</b> <<a href="mailto:brian.phillips@gmx.net">brian.phillips@gmx.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Piers Kittel wrote:<br><br>> Does anyone have a script that automatically restarts the backend or<br>> should I be fixing something else first?
<br>><br>> Thanks very much for your time in advance!<br><br>You should probably be fixing something else first...but since you want the<br>WAF up quickly, here's what I use to restart gaming servers. I run it as a
<br>screen process as well so it seems like it's right up your alley.<br><br>=======================================<br>#!/bin/bash<br><br>while [ 1 ]; do<br> /usr/local/bin/etded +set vm_game 0 +set net_port 27960 +set
<br>com_hunkmegs 64 +set com_zoneMegs 32 +set fs_basepath<br>/usr/local/games/enemy-territory +set fs_game etf +set fs_homepath 27960<br>+set sv_punkbuster 1 +exec etfconfig.cfg<br><br> rm -f core<br> sleep 1
<br>Done<br><br>=====================================<br>Just replace the line that starts with /usr/local/bin/etded to whatever your<br>mythbackend startup line is.<br><br>Brian<br><br>><br>> Regards - Piers<br>> _______________________________________________
<br>> mythtv-users mailing list<br>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br><br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div>
<div><br>I use "monit" to check on the status of the mythbackend every minute and run a restart when it can't find the process.</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Steve</div>