Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1248

Make working directory for server processes configurable

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Management

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            r.neubauer@seeburger.de Rico Neubauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: