Fix the wrapper file. Add a pidfile to the systemd unit
This commit is contained in:
parent
e823fd8129
commit
0484b14b27
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue