[jboss-jira] [JBoss JIRA] (WFCORE-1422) EAP init scripts don't detach jbossas process

Bartosz Spyrko-Śmietanko (JIRA) issues at jboss.org
Tue Mar 8 09:54:00 EST 2016


     [ https://issues.jboss.org/browse/WFCORE-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bartosz Spyrko-Śmietanko updated WFCORE-1422:
---------------------------------------------
    Affects Version/s: 2.1.0.CR1


> EAP init scripts don't detach jbossas process
> ---------------------------------------------
>
>                 Key: WFCORE-1422
>                 URL: https://issues.jboss.org/browse/WFCORE-1422
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 2.1.0.CR1
>            Reporter: Bartosz Spyrko-Śmietanko
>            Assignee: Bartosz Spyrko-Śmietanko
>              Labels: downstream_dependency
>
> 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
> {noformat}
> 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 -
> {noformat}
> Expectation: "domain.sh" to become detached and have "1" as its parent.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list