-
Bug
-
Resolution: Done
-
Major
-
2.1.0.CR1
When starting WF via wildfly-init-redhat.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 docs/contrib/scripts/init.d/wildfly.conf to /etc/default
configure it with:
JBOSS_HOME=/home/jbossadm/wildfly
JBOSS_USER=jbossadm
JBOSS_CONSOLE_LOG=/home/jbossadm/console.log
JBOSS_MODE=domain
- copy docs/contrib/scripts/init.d/wildfly-init-redhat.sh to /etc/init.d
- become su, and start with:
/etc/init.d/wildfly-init-redhat.sh start
-run: ps axfo pid,ppid,user,command | grep jboss
PID PPID USER COMMAND 479 1 root /bin/sh /etc/init.d/wildfly-init-redhat.sh start 481 479 root \_ runuser -s /bin/bash jbossadm -c ulimit -S -c 0 >/dev/null 2>&1 ; LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/var/run 482 481 jbossadm \_ bash -c ulimit -S -c 0 >/dev/null 2>&1 ; LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/var/run/wildfly/wildfly.pid 483 482 jbossadm \_ /bin/sh /home/jbossadm/jboss-eap-7/bin/domain.sh --domain-config=domain.xml --host-config=host.xml 579 483 jbossadm \_ java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack 596 579 jbossadm \_ java -D[Host Controller] -Dorg.jboss.boot.log.file=/home/jbossadm/jboss-eap-7/domain/log/host-control 677 579 jbossadm \_ java -D[Server:server-one] -Xms64m -Xmx512m -server -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m - 727 579 jbossadm \_ java -D[Server:server-two] -Xms64m -Xmx512m -server -XX:MetaspaceSize=96m -XX:MaxMetaspaceSize=256m -
Expectation: "domain.sh" to become detached and have "1" as its parent.
- is cloned by
-
JBEAP-3666 EAP init scripts don't detach jbossas process
- Closed