Bug 1222855 - [GSS](6.4.z) When EAP is run as a service in linux, the working directory is "/"
Summary: [GSS](6.4.z) When EAP is run as a service in linux, the working directory is "/"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.7
Assignee: baranowb
QA Contact: Peter Mackay
URL:
Whiteboard:
Depends On:
Blocks: eap647-payload
TreeView+ depends on / blocked
 
Reported: 2015-05-19 10:09 UTC by Oscar Molina
Modified: 2019-06-13 08:30 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 11:55:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-753 0 Major Resolved When WFCORE is run as a service in linux, the working directory is "/" 2018-06-11 15:18:23 UTC
Red Hat Knowledge Base (Solution) 1454143 0 None None None 2016-03-07 09:36:23 UTC

Description Oscar Molina 2015-05-19 10:09:44 UTC
Description of problem:

When you run EAP as a service in a linux environment, it starts in the directory "/" by default regardless of the user. The application starts without problems because all directories or files that have to be created on runtime have the correct path, but sometimes some of them are created in the working path and then an error appears.

Could the jboss service init scripts be modified to set the working directory to $JBOSS_HOME for instance when the service is started?

How reproducible:
Install JBoss EAP 6.4 as a service and check the working directory.

Steps to Reproduce:
1. Install JBoss EAP 6.4 as a service.
2. Modify <JBOSS_HOME>/bin/standalone.sh script adding the command "pwd" for viewing the default path.
3. Start JBoss EAP service.
4. Look at the server.log file.

Actual results:

The working directory is "/".

Expected results:

The working directory could be $JBOSS_HOME or it can be parametrized so customer can modify it.

Additional info:

Comment 2 Oscar Molina 2015-05-19 13:01:41 UTC
Hi Bartosz,

Sorry for that information. I've tested on version 6.4.0 and I've configured JBoss EAP 6 as a Service in Red Hat Enterprise Linux (Zip, Installer).

Don't hesitate to contact with me if you need more information.

Best regards,
Oscar.

Comment 9 Peter Mackay 2016-03-04 07:40:05 UTC
Verified with EAP 6.4.7.CP.CR2

Comment 10 Petr Penicka 2017-01-17 11:55:36 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


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