-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
Currently there is 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 tested JBoss with changed working directory and this seems not to introduce any issue, so I would request this becomming a configuration option.
A simple approach is to use system-property "user.dir" also for the server-processes. A more advanced soltion is to make this a configuration element/attribute beneath the server-configuration.
See the forum discussion for more references.