title: Init.d script for nginx on Cent OS
body: <p>I'm using the init.d script from this: <a href="http://wiki.nginx.org/RedHatNginxInitScript" rel="nofollow">http://wiki.nginx.org/RedHatNginxInitScript</a> but this script sucks on my CentOS 5.5 nginx 1.0.6 (which installed by passenger).
  It sucks for 2 reasons:</p>
  
  <ol>
  <li><p>When I run <code>service nginx start</code>, it start nginx but then do not quit it self.</p></li>
  <li><p>It run in some different runtime path ($PATH) so that rails won't be able to find executables located inside /usr/local/bin (like node.js)</p></li>
  </ol>
  
  <p>Is there any init.d script that works for you guys (on CentOS or other Redhat based distribution) that does not have these problems?</p>