title: Use Node.js to interface with bash
body: <p>I have apache and Node.js running on Ubuntu</p>
  
  <p>Is there a way to programatically check if the apache service is running with Node? If it's not running, allow Node.js to start/restart the service, also could the same code be used to run other processes like MySQL?</p>
  
  <p>I'd also like to find a way to make Node execute "ps -u user" and capture the output in a js string or object</p>
  
  <p>I've had a look at Node.js child processes but I can't figure it out</p>
  
  <p>Thanks in advance</p>