-
Bug
-
Resolution: Done
-
Major
-
7.0.0.ER6
When starting EAP7 via jboss-eap-rhel.sh, the init script and runuser commands are never disconnected and stay in the process tree.
Reproduce:
- create a new OS user "jbossadm"
- unzip WF in his home directory
- copy bin/init.d/jboss-eap.conf to /etc/default
configure it with:
JBOSS_HOME=/home/jbossadm/eap
JBOSS_USER=jbossadm
JBOSS_CONSOLE_LOG=/home/jbossadm/console.log
JBOSS_MODE=domain
- copy bin/init.d/jboss-eap-rhel.sh to /etc/init.d
- become su, and start with:
/etc/init.d/jboss-eap-rhel.sh start
-run: ps axfo pid,ppid,user,command | grep jboss
PID PPID USER COMMAND 1 0 root /bin/bash 731 1 root /bin/sh /etc/init.d/jboss-eap-rhel.sh start 733 731 root \_ runuser -s /bin/bash jbossadm -c ulimit -S -c 0 >/dev/null 2>&1 ; LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/var/run/jboss-eap/jboss-eap.pid /home/jbossadm/jboss-eap-7/bin/domain.sh --domain-config=domain.xml --host-config=host.xml 734 733 jbossadm \_ bash -c ulimit -S -c 0 >/dev/null 2>&1 ; LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/var/run/jboss-eap/jboss-eap.pid /home/jbossadm/jboss-eap-7/bin/domain.sh --domain-config=domain.xml --host-config=host.xml 735 734 jbossadm \_ /bin/sh /home/jbossadm/jboss-eap-7/bin/domain.sh --domain-config=domain.xml --host-config=host.xml 831 735 jbossadm \_ java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/home/jbossadm/jboss-eap-7/domain/log/process-controller.log -Dlogging.configuration=file:/home/jbossadm/jboss-eap-7/domain/configuration/logging.properties -jar /home/jbossadm/jboss-eap-7/jboss-modules.jar -mp /home/jbossadm/jboss-eap-7/modules org.jboss.as.process-controller -jboss-home /home/jbossadm/jboss-eap-7 -jvm java -mp /home/jbossadm/jboss-eap-7/modules -- -Dorg.jboss.boot.log.file=/home/jbossadm/jboss-eap-7/domain/log/host-controller.log -Dlogging.configuration=file:/home/jbossadm/jboss-eap-7/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -- -default-jvm java --domain-config=domain.xml --host-config=host.xml 848 831 jbossadm \_ java -D[Host Controller] -Dorg.jboss.boot.log.file=/home/jbossadm/jboss-eap-7/domain/log/host-controller.log -Dlogging.configuration=file:/home/jbossadm/jboss-eap-7/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -jar /home/jbossadm/jboss-eap-7/jboss-modules.jar -mp /home/jbossadm/jboss-eap-7/modules org.jboss.as.host-controller -mp /home/jbossadm/jboss-eap-7/modules --pc-address 127.0.0.1 --pc-port 34452 -default-jvm java --domain-config=domain.xml --host-config=host.xml -Djboss.home.dir=/home/jbossadm/jboss-eap-7 924 831 jbossadm \_ java -D[Server:server-one] -Xms1000m -Xmx1000m -server -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djboss.home.dir=/home/jbossadm/jboss-eap-7 -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.log.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-one/log -Djboss.server.temp.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-one/tmp -Djboss.server.data.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-one/data -Dlogging.configuration=file:/home/jbossadm/jboss-eap-7/domain/servers/server-one/data/logging.properties -jar /home/jbossadm/jboss-eap-7/jboss-modules.jar -mp /home/jbossadm/jboss-eap-7/modules org.jboss.as.server 972 831 jbossadm \_ java -D[Server:server-two] -Xms1000m -Xmx1000m -server -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djboss.home.dir=/home/jbossadm/jboss-eap-7 -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.log.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-two/log -Djboss.server.temp.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-two/tmp -Djboss.server.data.dir=/home/jbossadm/jboss-eap-7/domain/servers/server-two/data -Dlogging.configuration=file:/home/jbossadm/jboss-eap-7/domain/servers/server-two/data/logging.properties -jar /home/jbossadm/jboss-eap-7/jboss-modules.jar -mp /home/jbossadm/jboss-eap-7/modules org.jboss.as.server
Expectation: "domain.sh" to become detached and have "1" as its parent.
- clones
-
WFCORE-1422 EAP init scripts don't detach jbossas process
- Resolved
- is related to
-
JBEAP-9245 [GSS](7.0.z) WFCORE-2348 - Error while starting JBoss as service in domain mode using init scripts.
- Closed