Get the process ID JBoss 7 / EAP 6:

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 

Be the first to comment

Leave a Reply