Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1468085
Description of problem:
The following "/" is logged when EAP is started as a service.
----------------------
7月 05 15:38:44 dhcp-221-186.gsslab.nrt.redhat.com systemd[1]: Starting SYSV: JBoss AS Standalone...
7月 05 15:38:44 dhcp-221-186.gsslab.nrt.redhat.com jboss-as-standalone.sh[28004]: Starting jboss-as: / **********HERE
----------------------
This should be removed since this is meaningless and would make the customers confused.
Version-Release number of selected component (if applicable):
EAP 6.4.7 and later
This comes from bundled init script in the following line.
$JBOSS_HOME/bin/init.d/jboss-as-standalone.sh
----------------------
if [ ! -z "$JBOSS_USER" ]; then
if [ -r /etc/rc.d/init.d/functions ]; then
cd $JBOSS_HOME
daemon --user $JBOSS_USER LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT -c $JBOSS_CONFIG > $JBOSS_CONSOLE_LOG 2>&1 &
cd -
----------------------
$JBOSS_HOME/bin/init.d/jboss-as-domain.sh
----------------------
if [ ! -z "$JBOSS_USER" ]; then
if [ -r /etc/rc.d/init.d/functions ]; then
cd $JBOSS_HOME
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 &
cd -
----------------------
How reproducible:
We can have init script under $EAPHOME/bin/init.d/
Steps to Reproduce:
1.add a service to run EAP
2.start EAP as a service
3.after starting EAP, check the logged message
Actual results:
The line "Starting jboss-as: / " is logged.
Expected results:
This line is not necessary. If the comment out line 95 "cd -" in init script,
This legged message is disappeared. Or modify to redirect "/dev/null",
this could be a workaround.
Additional info:
This behavior seems to be harmless but I believe this kind of meaningless message
should be logged. Also this part of init script can be found in EAP7 so please fix it in the future release.