Bug 1447878

Summary: [GSS](6.4.z) On /etc/rc.d/init.d/jbossas-domain and standalone inconsistent use of >> and > to write to console.log
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: tmiyargi
Component: Scripts and Commands, RPMsAssignee: jboss-set
Status: CLOSED CURRENTRELEASE QA Contact: Marek Kopecky <mkopecky>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: bmaxwell, fnasser, ihradek, msochure, pcheung, pgier, pkremens, rpelisse, rstancel, tcerar
Target Milestone: CR1   
Target Release: EAP 6.4.16   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-22 09:24:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1434495    

Description tmiyargi 2017-05-04 06:39:24 UTC
Description of problem:

Used >> first part of condition and > in the else
if [ -z "$SUBIT" ]; then
        eval $CMD_START >>${JBOSS_CONSOLE_LOG} 2>&1 &
    else
        $SUBIT "export JAVA_HOME=$JAVA_HOME; export JAVA_OPTS=\"$JAVA_OPTS\"; export JBOSS_MODULEPATH=$JBOSS_MODULEPATH; $CMD_START>${JBOSS_CONSOLE_LOG} 2>&1 &"
    fi
Using > causes problems when rotating logs since the cursor is not reset.

Comment 8 Ivo Hradek 2017-06-15 07:04:25 UTC
Fixed for both:
 - jbossas-domain-7.5.16-*.rpm,
 - jbossas-standalone-7.5.16-*.rpm.
Hence, verified for EAP-6.4.16-CP.CR1, thank you.

Comment 9 Petr Penicka 2017-06-22 09:24:31 UTC
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.