title: Start/Stop/Restart OS *inux services using Node.js?
body: <p>Sadly, we don't use node extensively at my work (yet anyway), however, I wanted to write a small "watcher" app in Node that would preform some very basic health checks on the local server and if a problem is detected I want this watcher app to restart the associated service.</p>
  
  <p>For example, I want to check Apache every 5 minutes to ensure HTTP is available. If not, I'd like the app to restart httpd as well as the application server process and send an alert. I just can't find anything on the internets' that discusses restarting OS level services using Node... but with all the posts on "how to daemonize Node" I could have missed something in the clutter.</p>
  
  <p>Any help/direction would be appreciated.</p>
  
  <p>My particular setup:</p>
  
  <ul>
  <li>OS: Cent OS 6.3</li>
  <li>Node: v0.10.19</li>
  </ul>