[jboss-jira] [JBoss JIRA] (AS7-2494) Unable to put all configuration and logs outside AS7 distribution
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Mon Jan 16 11:10:18 EST 2012
[ https://issues.jboss.org/browse/AS7-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry reassigned AS7-2494:
-------------------------------------
Assignee: James Perkins (was: Brian Stansberry)
James Perkins is doing other work on logging that can be expanded a bit to take care of this issue.
> Unable to put all configuration and logs outside AS7 distribution
> -----------------------------------------------------------------
>
> Key: AS7-2494
> URL: https://issues.jboss.org/browse/AS7-2494
> Project: Application Server 7
> Issue Type: Bug
> Components: Scripts
> Reporter: Rostislav Svoboda
> Assignee: James Perkins
> Fix For: 7.1.0.Final
>
>
> I'm not able to configure AS7 to use all configuration files from different location than standard $JBOSS_HOME/standalone/configuration or $JBOSS_HOME/domain/configuration. I'm using system properties described on confluence [1]. The same for log files.
> AS7 always requires logging.properties from $JBOSS_HOME and it writes boot.log into directories under $JBOSS_HOME depending whether standalone or domain is running.
> The root of this problem is in scripts:
> standalone.sh/.bat
> {code}
> -Dorg.jboss.boot.log.file=$JBOSS_HOME/standalone/log/boot.log
> -Dlogging.configuration=file:$JBOSS_HOME/standalone/configuration/logging.properties
> {code}
> domain.sh/.bat
> {code}
> -Dorg.jboss.boot.log.file=$JBOSS_HOME/domain/log/process-controller/boot.log
> -Dlogging.configuration=file:$JBOSS_HOME/domain/configuration/logging.properties
> -Dorg.jboss.boot.log.file=$JBOSS_HOME/domain/log/host-controller/boot.log
> -Dlogging.configuration=file:$JBOSS_HOME/domain/configuration/logging.properties
> {code}
> My idea:
> Introduce LOG_PATH + CONFIGURATION_PATH properties (similar to MODULEPATH property) in .sh/.bat files to have logs and configuration outside AS7/EAP6.
> Default LOG_PATH by default would be $JBOSS_HOME/domain/log or $JBOSS_HOME/standalone/log.
> Default CONFIGURATION_PATH would be $JBOSS_HOME/domain/configuration or $JBOSS_HOME/standalone/configuration.
> Definitions of -Dorg.jboss.boot.log.file= and -Dlogging.configuration= would be changed to use LOG_PATH + CONFIGURATION_PATH properties.
> Changes for server instances can be modified using system properties -- jboss.server.log.dir + jboss.server.config.dir OR jboss.domain.log.dir + jboss.domain.config.dir + jboss.domain.servers.dir.
> [1] https://docs.jboss.org/author/display/AS71/Command+line+parameters
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list