title: Running NodeJS as a service in Windows with child process
body: <p>I've got two NodeJS servers running on Windows, one listening for incoming requests which then shapes the request and then hands the request off to a worker server. The worker server will take the inputs from the controller and perform several functions: log the event with the DB, shell out to perform an action through a child process, evaluate the results and finally return the results back to the controller.</p>
  
  <p>When I run both processes through Powershell or cmd everything runs fine. If I run the Controller as a service with NSSM and the Worker on Powershell everything works fine. However, if I run the Worker server as a service with NSSM the child processes fail (console.logs or using something like bunyon seem to be swallowed up so debugging is difficult). Is there any way to run NodeJS as a server if it needs to execute child processes?</p>