1. The supplied jboss init script shall accept options for jboss. Proposal: $JBOSS_OPTIONS. This is usefull to hand over the binding. (My JBoss is in a VM on DHCP and I don't want to/can't bind to 0.0.0.0).
2. Bug: On CentOS 6 (and maybe other Distros too), the /etc/rc.d/init.d/functions has no executable flag set. The jboss init.d script itself sources it with ". /etc/rc.d/init.d/functions"
ll /etc/rc.d/init.d/functions -rw-r--r--. 1 root root 18171 Oct 7 16:01 /etc/rc.d/init.d/functions
Proposed patch:
patch for $JBOSS_HOME/bin/init.d/jboss-as-standalone.sh
# diff /opt/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss 60c60 < if [ -x /etc/rc.d/init.d/functions ]; then --- > if [ -r /etc/rc.d/init.d/functions ]; then 89,90c89,90 < if [ -x /etc/rc.d/init.d/functions ]; then < daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT -c $JBOSS_CONFIG 2>&1 > $JBOSS_CONSOLE_LOG & --- > if [ -r /etc/rc.d/init.d/functions ]; then > daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT $JBOSS_OPTIONS -c $JBOSS_CONFIG 2>&1 > $JBOSS_CONSOLE_LOG & 92c92 < su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT -c $JBOSS_CONFIG" 2>&1 > $JBOSS_CONSOLE_LOG & --- > su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT $JBOSS_OPTIONS -c $JBOSS_CONFIG" 2>&1 > $JBOSS_CONSOLE_LOG &
- relates to
-
ISPN-4476 infinispan-server.sh uses wrong condition for /etc/rc.d/init.d/functions
- Closed