In the RHEL version of this script, the -b option is supported.
Is it possible to have the HP one modified for the future?
Here is the little change required:
CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]} -b ${JBOSS_BIND_ADDR[i]}"
instead of just
CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]}"
Thanks to confirm if it is ok and if next CP will have it.
------------------------------------------------------------------------------------------------------------
Potentially, more complete solution
------------------------------------------------------------------------------------------------------------
if [ "x${JBOSS_BIND_ADDR[i]}" = "x" ]; then
CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]} "
START_MESSAGE=""
else
CMD_START="${JBOSS_HOME[i]}/bin/run.sh -c ${SERVER_NAME[i]} -b ${JBOSS_BIND_ADDR[i]}"
START_MESSAGE=" on the ${JBOSS_BIND_ADDR[i]} interface"
fi
nohup su - ${JBOSS_USER[i]} -c "sh $CMD_START" >${JBOSS_CONSOLE[i]} 2>&1 &
echo "Starting JBoss AS for user ${JBOSS_USER[i]} at ${JBOSS_HOME[i]} with instance ${SERVER_NAME[i]}${START_MESSAGE}."
- relates to
-
JBPAPP-3036 jboss_init_hpux script start feature generates unexpected error
-
- Closed
-