title: Started JBOSS Service via Shell Script, but hanging
body: <p>I managed to start JBOSS service through a shell script running locally inside the server. </p>
  
  <pre><code>if [ $? -eq 0 ]; then
      {
              sh /jboss-6.1.0.Final/bin/run.sh -c server1 -g app1 -u x.x.x.x -b x.x.x.x -Djboss.messaging.ServerPeerID=1 &amp;
      }; fi
  </code></pre>
  
  <p>My problem is I am able to start the service and found the application working, but once the script finishes running, it is not returning to shell ($ prompt) back and keep on hanging there forever. When I run the same command directly (without script), after the command finishes running, on hitting Enter key, I can get my $ prompt and I shall do other works.</p>
  
  <p>Can someone tell me what I am missing in my code so that I can return back to my $ prompt.</p>