Running nginx with daemontools<br>Hey guys I m trying to figure out how to run nginx and the backends using supervise in daemon mode<br>the idea is to run the fastcgi backends in supervise daemonzied mode so that if they get killed due to memory leaks or overload or whatever error they can be rebooted by supevise automatically wtihout human intervention<br>
thanks for sharing ideas<br><p class="line867"><strong><br></strong></p><p class="line867"><strong>Syntax:</strong> <em>daemon on | off</em> <span class="anchor" id="line-28"></span><span class="anchor" id="line-29"></span></p>
<p class="line867"><strong>Default:</strong> <em>on</em> <span class="anchor" id="line-30"></span><span class="anchor" id="line-31"></span></p><p class="line867"><span class="anchor" id="line-32"></span></p><pre>daemon  off;<br>
<span class="anchor" id="line-33"></span></pre><span class="anchor" id="line-34"></span>Do
not use the &quot;daemon&quot; and &quot;master_process&quot; directives in a production
mode, these options are mainly used for development only. You can use <tt>&nbsp;daemon&nbsp;off&nbsp;</tt> safely in production mode with runit / <b style="color: black; background-color: rgb(160, 255, 255);">daemontools</b> however you can&#39;t do a graceful upgrade. <tt>&nbsp;master_process&nbsp;off&nbsp;</tt> should never be used in production.