I was trying to test jboss_init_redhat.sh script to start and stop JBoss EAP as service with my local EAP 5.3 build. I found that once I started server and execute stop command, the server can not be stopped due to "No JBossas is currently running".
From the jboss_init_redhat.sh script code:
the sed regexp substitution changes the right path from
therefore, it can't get to right procid to proceed to stop server.