<div dir="ltr">This is very useful indeed! Could you please add info to <a href="https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help">https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help</a> as well for future reference?<div>

<br></div><div>Dan Michael</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 July 2014 21:36, Marc A. Pelletier <span dir="ltr"><<a href="mailto:marc@uberbox.org" target="_blank">marc@uberbox.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">... if you ask it to.<br>
<br>
I've deployed a first version of the bigbrother daemon, that will watch<br>
tool jobs you specify and restart them if they fail for any reason.<br>
<br>
=== What it does ===<br>
<br>
If one of the jobs it tracks is not running (or pending), it will<br>
attempt to start it again.  Bigbrother will attempt to start a job up to<br>
five times in a 24h window; throttling further restarts.<br>
<br>
If it restarts a job, or fails to do so, it will send an email to the<br>
tool's maintainers, and log to ~/bigbrother.log<br>
<br>
=== How to use it ===<br>
<br>
For every job you want to watch, you have add a line to ~/.bigbrotherrc<br>
(that file is checked for jobs to watch every couple minutes).<br>
<br>
It understands exactly two types of entries:<br>
<br>
  webservice [-tomcat]<br>
<br>
will watch for a webservice, and issue a 'webservice start' if it stops; and<br>
<br>
  jstart -N <jobname> [more options]<br>
<br>
will watch for a continuous job by the specified name, using the<br>
specified command line to restart it if it stops.  Please note that the<br>
-N option is mandatory, and must be the first specified option.<br>
<br>
Any other entry will be ignored, and cause an error (that will also be<br>
mailed to the tool's maintainers).<br>
<br>
Any output from webservice or jstart will be appended to the<br>
bigbrother.log file.<br>
<br>
-- Marc<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote></div><br></div></div>