WildFly Startup Wrapper EAP 7.0: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
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 set by the unit file
# JBOSS_USER set by the unit file
# JBOSS_MODE set by the unit file


JBOSS_HOME=/opt/jboss/
JBOSS_USER=eap
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; }
JBOSS_MODE=domain
</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; }