WildFly Startup Wrapper EAP 7.0: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 8: Line 8:


<pre>
<pre>
JBOSS_HOME=/opt/jboss/
# JBOSS_HOME set by the unit file
JBOSS_USER=eap
# JBOSS_USER set by the unit file
JBOSS_MODE=domain
# JBOSS_MODE set by the unit file
 
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>

Latest revision as of 13:05, 14 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 set by the unit file
# JBOSS_USER set by the unit file
# JBOSS_MODE set by the unit file

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; }