14

Recycle Jboss server script

view full story
linux-howto

http://www.unix.com – Hello, I need help writing a script to restart our Jboss server when it crashes. I am not very good with scripting but here is the basics. 1) I'm hoping to use KornShell 2) The command to stop the Jboss is "/var/opt/HP/ALM/jboss/bin/run.sh stop" 3) I want to verify the jboss is stopped before attempting to restart, not sure how to do this at all 4) Start the jboss "/var/opt/HP/ALM/jboss/bin/run.sh start" Should be very simple but I just am not sure where to start, how to get that stop/start command to be input into the string. Can anyone help? (HowTos)