title: Restart forever.js for a node.js app through a cron?
body: <p>My node.js app crashes sometimes and sometimes forever.js automatically restarts it and sometimes it does not. </p>
  
  <p>There's nothing in the logs - I run forever with '-e' option but that doesn't save any error log - my main log simply breaks off and that's it...</p>
  
  <p>Tired of trying to figure it out I wonder if there's another solution: can I set up a cron, which would check my URL for 503 code and if it's the case, it would restart the app using forever?</p>
  
  <p>I know how to white a bash script to start forever but how do I check if the URL returns 503 code?</p>
  
  <p>Thanks!</p>