initial pass at script to make sure JBoss is in correct up/down state