Get the process ID JBoss 7 / EAP 6:

Author:

Get the process ID JBoss 7 / EAP 6:

pgrep -f org.jboss.as

A shell script:

if [ -z "$(pgrep -f org.jboss.as)" ]
then 
 echo "JBoss is NOT running"
else
  echo "JBoss is running"
fi 

Leave a Reply