title: How to start Play using Bamboo without having the deployment continue forever?
body: <p>We have created a Play application in Java and are deploying it to a dev-environment virtual machine using <a href="https://www.atlassian.com/software/bamboo" rel="nofollow">Atlassian Bamboo's</a> SSH task: <code>cd path/to/application/directory &amp;&amp; start "" play run</code>.  This goes to the proper location, launches a new console, and starts play: the server is started successfully and we can access the site with no issues.</p>
  
  <p>The problem is that the deployment task in Bamboo never stops because it is still monitoring the console where <code>play run</code> was called -- in the Bamboo status, we are seeing things like <code>Deploying for 7,565 minutes</code>.  We thought adding the <code>start ""</code> would fix that issue, but in Bamboo it is the same as just doing the <code>play run</code>.  Also, when we need to redeploy, we must first stop the deployment in process, and manually relaunch it.</p>
  
  <p><strong>Two questions:</strong></p>
  
  <ol>
  <li>How can we start the server from Bamboo in such a way that the deployment plan finishes?</li>
  <li>How can we stop/kill the previous server from Bamboo at the beginning of the next deployment?</li>
  </ol>