[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to avoid starting JBoss AS, if already running
do-not-reply at jboss.com
Wed Dec 24 12:33:33 EST 2008
Too bad you are not running Windows or I would have pointed you to the service.bat script (comes with JBoss AS 5.0 and with JBoss Native). That script uses a lock file to prevent multiple runs.
For Linux, look at the jboss_home/bin/jboss_init_hpux.sh script. It greps the output from ps looking for a JBoss AS instance running. I don't know if you can use that script as-is on Fedora, but if not you should be able to use the code that does the isJBossRunning check as an example for writing your own code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198476#4198476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198476
More information about the jboss-user