title: Can I prevent forever from restarting my node script in certain cases?
body: <p>I have a node script which I run from the command line with forever: <code>forever index.js</code></p>
  
  <p>When that script crashes, I want forever to restart it, but not all the time. There are certain cases which I know will need human intervention to fix. In those cases, I hoped it would be possible to exit the process in a way forever wouldn't restart it.</p>
  
  <p>Is there any way to do this?</p>
  
  <p>I originally thought I could have the process restarted with <code>process.exit(1)</code> and not restarted with <code>process.exit(0)</code>, but apparently this is not the case.</p>
  
  <p>Here is another way to put it:</p>
  
  <ul>
  <li>Fill in the blanks in the code below.</li>
  <li>Save the result as <em>index.js</em></li>
  <li>Launch the script with <code>forever index.js</code></li>
  <li><p>The script should print "hello", exit, and not be restarted</p>
  
  <pre><code>setTimeout(function () {
      console.log("hello")
     // YOUR CODE GOES HERE
  }, 1500)
  </code></pre></li>
  </ul>
  
  <p>By the way, the delay in there is just work around the default --minUpTime of 1 second</p>