JBoss Community

Working directory for server processes not configurable

created by Rico Neubauer in JBoss AS 7 Development - View the full discussion

Hi,

 

Currently there seems no configuration option to set the working directory of the server-process(es).

Host- and domain-controller both use system-property "user.dir", but for the server-process in org.jboss.as.host.controller.ManagedServer.ProcessAddTask#execute() the following is used to initiate the new process:

 

processControllerClient.addProcess(serverProcessName, authKey, command.toArray(new String[command.size()]), environment.getHomeDir().getAbsolutePath(), env);

where environment.getHomeDir().getAbsolutePath() donates the working directory for the new process.

 

I JBoss with changed working directory and this seems not to introduce any issue, so I would request this becomming a configuration option.

Do you agree/disagree and should I open a JIRA for it?

 

Also see this discussion of one of my colleagues for general thoughts regarding the working directory: https://community.jboss.org/thread/203368.

 

Best Regards,

Rico

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community