title: Upstart stop if running
body: <p>I have a Jenkins job to stop a node application, deploy code, and start the application.</p>
  
  <p>The start/stop is done with an Upstart script.</p>
  
  <p>I use <code>initctl stop node-App</code></p>
  
  <p>If the job is running, this works great.  But if the app has died or is in a stopped state, the output is <code>initctl: Unknown instance:</code></p>
  
  <p>This causes the Jenkins job to fail and not proceed to the next steps.  </p>
  
  <p>Is there a way to check if the job is started before issuing the start command?  Or is there a way for Jenkins to not consider that an error and fail the job?</p>