Is it every startup?
What if you 'set -x' in the script and redirect into a file.
Also you might add a console appender for test.
Thank you for your reply.
It happens one out of four times randomly. It should be related to some timing issue. But we are unable to find root cause as there are no logs.
JBoss runs as service in our case. The JBoss logger itself is not getting initialized. So I am not sure if redirecting the logs would help.
Can you please help regarding the -x option? What is it meant for?
I appreciate your time.
I meant the debug option of the shell to see all commands of the script.
<the jboss init script>
} >/tmp/mystart.log 2>&1