Thankyou Peter ! I have solved the problem by adding the following to my 
runJBoss.sh script

jbossRunning=$(ps -ef | grep "sh runJBoss.sh" | grep -vc grep)
echo "jbossRunning = " $jbossRunning

if  [ $jbossRunning -gt 2 ]; then
    die "Already running JBoss . . . Going to exit"
else
    warn "No instance running. Going to start this"
fi

I would also try the other method that you mentioned. 

Thanks a lot
Farhan !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198556#4198556

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198556
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to