Bug 1425754 - [GSS](6.4.z) Error while starting JBoss as service in domain mode using init scripts.
Summary: [GSS](6.4.z) Error while starting JBoss as service in domain mode using init ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: jbossas, Scripts and Commands
Version: 6.4.13
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.15
Assignee: Radovan STANCEL
QA Contact: Peter Mackay
URL:
Whiteboard:
Depends On: 1273093
Blocks: eap6415-payload
TreeView+ depends on / blocked
 
Reported: 2017-02-22 10:21 UTC by Abhijit humbe
Modified: 2020-04-15 15:20 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-19 08:09:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-9245 0 Critical Verified [GSS](7.0.z) WFCORE-2348 - Error while starting JBoss as service in domain mode using init scripts. 2019-05-28 10:05:16 UTC
Red Hat Issue Tracker WFCORE-2348 0 Minor Resolved Error while starting WildFly as service in domain mode using init scripts. 2019-05-28 10:05:16 UTC

Description Abhijit humbe 2017-02-22 10:21:05 UTC
Description of problem:
After updating JBoss EAP 6.4.13,we tried to configure JBoss as service in domain mode using init scripts. For this we copy the new jboss-as-domain.sh file to /etc/init.d,  and start the daemon with service jboss-as-domain.sh start,it throw below error:
~~~
Starting jboss-as: /usr/bin/dirname: extra operand `--domain-config=domain.xml'
Try `/usr/bin/dirname --help' for more information.
/
                                                           [  OK  ]

~~~
Version-Release number of selected component (if applicable):
6.4.13
RHEL 6.8

How reproducible:
configure JBoss as service in domain mode.

Steps to Reproduce:
0. update JBOSS_HOME and jboss-as.conf file location in jboss-as-domain.sh script
1. copy init script jboss-as-domain.sh from $JBOSS_HOME/bin/init.d to /etc/init.d
2. Try to start JBoss service using below command:
~~
service jboss-as-domain.sh start
~~ 
3.

Actual results:


Expected results:


Additional info:

Comment 1 oarribas 2017-02-22 12:19:28 UTC
The jboss-as-domain.sh script from EAP 6.4.7 patch works without throws the error. The difference between both scripts is:


EAP 6.4.7:
      daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG 2>&1 > $JBOSS_CONSOLE_LOG &


EAP 6.4.13:
      daemon --user $JBOSS_USER "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT --domain-config=$JBOSS_DOMAIN_CONFIG --host-config=$JBOSS_HOST_CONFIG &" 2>&1 > $JBOSS_CONSOLE_LOG

Comment 7 Peter Mackay 2017-05-12 10:01:41 UTC
Verified with EAP 6.4.15.CP.CR3

Comment 8 Petr Penicka 2017-05-19 08:09:55 UTC
Released on May 18 as part of EAP 6.4.15.


Note You need to log in before you can comment on or make changes to this bug.