[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to avoid starting JBoss AS, if already running

mrfarhankhan do-not-reply at jboss.com
Fri Dec 26 04:30:47 EST 2008


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



More information about the jboss-user mailing list