[jboss-jira] [JBoss JIRA] (WFLY-5540) Starting scripts not terminated on Solaris with LAUNCH_JBOSS_IN_BACKGROUND=true

Rostislav Svoboda (JIRA) issues at jboss.org
Mon Oct 19 09:03:00 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119436#comment-13119436 ] 

Rostislav Svoboda commented on WFLY-5540:
-----------------------------------------

I think LAUNCH_JBOSS_IN_BACKGROUND property evokes the process is fully running in background.
Well it's true for java process, but the script is still running and checking java process status - see {{wait $JBOSS_PID 2>/dev/null}}

LAUNCH_JBOSS_IN_BACKGROUND is used in community init scripts, I checked product scripts and they use different approach to get PID

> Starting scripts not terminated on Solaris with LAUNCH_JBOSS_IN_BACKGROUND=true
> -------------------------------------------------------------------------------
>
>                 Key: WFLY-5540
>                 URL: https://issues.jboss.org/browse/WFLY-5540
>             Project: WildFly
>          Issue Type: Bug
>          Components: Scripts
>         Environment: Solaris 11 (x86, x86_64, sparc), Solaris 10 sparc
>            Reporter: Tomáš Turek
>            Assignee: Tomaz Cerar
>
> Standalone.sh script is not terminating when I run it with {{LAUNCH_JBOSS_IN_BACKGROUND=true}} on Solaris 11 OS. The problem is that after sending TERM signal to end standalone script. Then the jboss-module.jar is successfully terminated, but starting script gets into an infinite loop that constantly writes to log this:
> {code}
> + SIGNAL=15
> ++ kill -l 15
> + SIGNAL_NAME=TERM
> + echo '*** JBossAS process (12898) received TERM signal ***'
> *** JBossAS process (12898) received TERM signal ***
> + '[' 143 -ge 128 ']'
> + wait 12898
> + WAIT_STATUS=143
> + '[' 143 -gt 128 ']'
> ++ expr 143 - 128
> + SIGNAL=15
> ++ kill -l 15
> + SIGNAL_NAME=TERM
> + echo '*** JBossAS process (12898) received TERM signal ***'
> *** JBossAS process (12898) received TERM signal ***
> + '[' 143 -ge 128 ']'
> + wait 12898
> + WAIT_STATUS=143
> + '[' 143 -gt 128 ']'
> ++ expr 143 - 128
> + SIGNAL=15
> ++ kill -l 15
> + SIGNAL_NAME=TERM
> + echo '*** JBossAS process (12898) received TERM signal ***'
> *** JBossAS process (12898) received TERM signal ***
> + '[' 143 -ge 128 ']'
> + wait 12898
> + WAIT_STATUS=143
> + '[' 143 -gt 128 ']'
> ++ expr 143 - 128
> + SIGNAL=15
> ++ kill -l 15
> + SIGNAL_NAME=TERM
> + echo '*** JBossAS process (12898) received TERM signal ***'
> {code} 



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



More information about the jboss-jira mailing list