diff --git a/templates/nexus.service.j2 b/templates/nexus.service.j2 index edb3770..9fc6026 100644 --- a/templates/nexus.service.j2 +++ b/templates/nexus.service.j2 @@ -5,7 +5,9 @@ After=network.target [Service] Type=forking LimitNOFILE=65536 +PIDFile={{ nexus_webapp_dir }}/bin/jsw/linux-x86-64/nexus.pid ExecStart={{ nexus_webapp_dir }}/bin/nexus start +ExecReload={{ nexus_webapp_dir }}/bin/nexus restart ExecStop={{ nexus_webapp_dir }}/bin/nexus stop User={{ nexus_user }} Restart=on-abort diff --git a/templates/wrapper.conf.j2 b/templates/wrapper.conf.j2 index 1c1ea42..cd43b8f 100644 --- a/templates/wrapper.conf.j2 +++ b/templates/wrapper.conf.j2 @@ -1,4 +1,33 @@ +# JSW Configuration file +# +# For complete coverage of available configuration, please go here: +# http://wrapper.tanukisoftware.org/doc/english/properties.html +# +# Some "most often used" keywords are added to end of this file +# to be used as a "guideline". They are NOT the complete list of +# keywords. +# Set the JSW working directory (used as base for resolving relative paths) +wrapper.working.dir=../../.. + +# Set the JVM executable +# (modify this to absolute path if you need a Java that is not on the OS path) +wrapper.java.command=java + +# The main class that JSW will execute within JVM +wrapper.java.mainclass=org.codehaus.plexus.classworlds.launcher.Launcher + +# The JVM classpath +wrapper.java.classpath.1=bin/jsw/lib/wrapper-3.2.3.jar +wrapper.java.classpath.2=./lib/plexus-classworlds-*.jar +wrapper.java.classpath.3=./conf/ + +# The library path +wrapper.java.library.path.1=bin/jsw/lib + +# Additional JVM parameters (tune if needed, but match the sequence of numbers!) +wrapper.java.additional.1=-Dsun.net.inetaddr.ttl=3600 +wrapper.java.additional.2=-DbundleBasedir=. wrapper.java.additional.3=-Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl" wrapper.java.additional.3.stripquotes=TRUE #wrapper.java.additional.4=-Xdebug