WildFly Startup Wrapper EAP 7.0: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
Add at the top of the file: | Add at the top of the file (the code that creates the log directory is still necessary, because the default code in the script creates it with wrong permissions): | ||
<pre> | <pre> | ||
JBOSS_HOME=/opt/jboss/ | JBOSS_HOME=/opt/jboss/ | ||
JBOSS_USER=eap | JBOSS_USER=eap | ||
JBOSS_MODE=domain | |||
JBOSS_CONSOLE_LOG=${JBOSS_HOME}/domain/log/console.log | JBOSS_CONSOLE_LOG=${JBOSS_HOME}/domain/log/console.log | ||
[ ! -d ${JBOSS_HOME}/domain/log ] && { mkdir -p ${JBOSS_HOME}/domain/log; chown ${JBOSS_USER} ${JBOSS_HOME}/domain/log; chmod a+rx ${JBOSS_HOME}/domain/log; } | [ ! -d ${JBOSS_HOME}/domain/log ] && { mkdir -p ${JBOSS_HOME}/domain/log; chown ${JBOSS_USER} ${JBOSS_HOME}/domain/log; chmod a+rx ${JBOSS_HOME}/domain/log; } | ||
</pre> | </pre> |
Revision as of 23:22, 13 March 2017
Internal
Overview
Add at the top of the file (the code that creates the log directory is still necessary, because the default code in the script creates it with wrong permissions):
JBOSS_HOME=/opt/jboss/ JBOSS_USER=eap JBOSS_MODE=domain JBOSS_CONSOLE_LOG=${JBOSS_HOME}/domain/log/console.log [ ! -d ${JBOSS_HOME}/domain/log ] && { mkdir -p ${JBOSS_HOME}/domain/log; chown ${JBOSS_USER} ${JBOSS_HOME}/domain/log; chmod a+rx ${JBOSS_HOME}/domain/log; }