title: Jboss 7.1.1 start/stop script
body: <p>Could someone tell how to start/stop the Jboss-7.1.1 server in MAC using <b>Shell Script</b>. </p>
  
  <pre><code>stop_viewer(){
  echo "********* Stopping JBoss Server by killing the process **********";
  ps | grep domain.sh | grep -v grep | awk '{print $1}' | xargs kill
  ps | grep java | grep -v grep | awk '{print $1}' | xargs kill
  ps -ef | grep superuser | grep java | grep -v grep | awk '{print $2}'| xargs kill
  echo "********* Stopped JBoss Server by killing the process **********";
  
  }
  </code></pre>
  
  <p>The above script is working fine in Jboss-7.0.2 to stop the server. But in Jboss-7.1.1, it doesn't stop the server. Please someone help to solve this.</p>