1 of 1 people found this helpful
Though I have not tried making JBoss startup as a service. I know that there are a few scripts that can take care of this functionality.
You may use the scripts:
for making JBoss start as a service. These scripts are present in the JBOSS_HOME/bin/
Hope it helps.
I am starting jboss by using following commnad
nohup ./run.sh -Djboss.bind.address=188.8.131.52 &
and from bin dir when i execute
sh jboss_init_redhat.sh stop
It is giving following messages
JBOSS_CMD_START = cd /usr1/jboss/jboss-4.2.3.GA/bin; /usr1/jboss/jboss-4.2.3.GA/bin/run.sh -c default
No JBossas is currently running
I thik it is not getting the bind address. Either that have to be hardcoded in the script or i have to pass it as an argument. Let me try all this.
Thanks for your guidance.
Yes the issue is solved.
1) Make a file with the name jboss, if more than one instance is there then make jboss1, jboss2 etc and copy the belwo content in to that file. Change the file path, jnp port , binding address etc
echo "Starting jboss.."
su -l -c 'nohup /usr1/jboss/jboss-4.2.3.GA/bin/run.sh -Djboss.bind.address=184.108.40.206 &' - jboss
echo "Stopping jboss ...."
su -l -c 'nohup /usr1/jboss/jboss-4.2.3.GA/bin/shutdown.sh --server 220.127.116.11:1099 &' - jboss
# give stuff some time to stop before we restart
# protect against any services that can't stop before we restart (warning this kills all Java instances running as 'jboss' user)
# if the 'su -l ...' command fails try:
Thanks and Regards