<br><br>
<div><span class="gmail_quote">On 18/01/2008, <b class="gmail_sendername">Brian Phillips</b> &lt;<a href="mailto:brian.phillips@gmx.net">brian.phillips@gmx.net</a>&gt; 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>&gt; Does anyone have a script that automatically restarts the backend or<br>&gt; should I be fixing something else first?
<br>&gt;<br>&gt; 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&#39;s what I use to restart gaming servers.&nbsp;&nbsp;I run it as a
<br>screen process as well so it seems like it&#39;s right up your alley.<br><br>=======================================<br>#!/bin/bash<br><br>while [ 1 ]; do<br>&nbsp;&nbsp; /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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm -f core<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&gt;<br>&gt; Regards - Piers<br>&gt; _______________________________________________
<br>&gt; mythtv-users mailing list<br>&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>&gt; <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 &quot;monit&quot; to check on the status of the mythbackend every minute and run a restart when it can&#39;t find the process.</div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>&nbsp;</div>
<div>Steve</div>