title: JBoss stop tail on server restart
body: <p>I have a shell script that resarts JBoss following a new deployment as a scheduled task. The problem is that jboss automatically tails the server.log on restart which means my shell script will not stop until the server is stopped again, since a ctrl-c doesnt seem to kill the tail, Im not sure how to get around this?</p>
  
  <p>I have seen some other examples where people use kill -9 to stop the tail?</p>
  
  <p>Ideally I would like the output from server.log up until the point where the server is up and running, but this could also be on a timer (stop tail after 60sec?)</p>
  
  <p>This is the script so far...</p>
  
  <pre><code>    echo "1) Archive Found To Deploy"
      cd /home/webApp/toDeploy
      chown jboss Archive.ear
      chgrp jboss Archive.ear
      mv Archive.ear /opt/jboss/server/default/deploy/
      echo "2) Archive Copied to Deploy Folder"
      /etc/init.d/jboss restart
      echo "3) Server Restarted"
  </code></pre>
  
  <p>Can anyone help me out?</p>
  
  <p>Thanks</p>