source: installer/resources/wrapper.config @ edb614d

Last change on this file since edb614d was edb614d, checked in by zzz <zzz@…>, 6 years ago

wrapper.config: Remove old mortbay properties, unused by new Jetty

  • Property mode set to 100644
File size: 11.2 KB
Line 
1#encoding=UTF-8
2#********************************************************************
3# Wrapper Properties
4#
5# WARNING - for any changes to take effect, you must completely
6# stop the router and the wrapper. Clicking 'Restart' on your
7# router console will NOT reread this file! You must
8# click "Shutdown", wait 11 minutes, then start i2p.
9#
10# WARNING - The wrapper is NOT run (and this file is not used)
11# if you start I2P with the 'no window' icon on Windows, or
12# with the runplain.sh script on Linux. Use the 'restartable'
13# icon on Windows or the i2prouter script on Linux to run the wrapper.
14#
15# NOTE - Directory organization:
16# The standard I2P Installation will set up a "split" directory structure
17# with code in the install directory, data and configuration files in the
18# user's home directory, and temporary files in the system temporary directory.
19# To set up a single-directory "portable" installation suitable for
20# a USB stick, make several changes specified below (search for PORTABLE).
21#
22# NOTE - The izpack installer performs variable subsitiution on this
23# file upon installation. If you did not use izpack, you must
24# find and replace all instances of (dollar)INSTALL_PATH and
25# (dollar)SYSTEM_java_io_tmpdir with appropriate values
26# (perhaps . and /var/tmp, respectively)
27#
28#********************************************************************
29# Java Application
30wrapper.java.command=java
31#  Specify a specific java binary:
32#set.JAVA_HOME=/java/path
33#wrapper.java.command=%JAVA_HOME%/bin/java
34# Gentoo uses the following:
35#wrapper.java.command=/etc/java-config-2/current-system-vm/bin/java
36#
37# Tell the Wrapper to log the full generated Java command line.
38#wrapper.java.command.loglevel=INFO
39##
40## PORTABLE installation:
41# A portable Java installation can be configured thusly:
42#set.JAVA_HOME=C:\path\to\your\portable\java\installation
43#wrapper.java.command=%JAVA_HOME\bin\java.exe
44##
45
46# Java Main class.  This class must implement the WrapperListener interface
47#  or guarantee that the WrapperManager class is initialized.  Helper
48#  classes are provided to do this for you.  See the Integration section
49#  of the documentation for details.
50wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
51
52# Java Classpath (include wrapper.jar)  Add class path elements as
53#  needed starting from 1
54#
55# Doing it this way means we can add new apps without asking people
56# to update their wrapper.config.
57# The downside is that we lose control over classpath order,
58# This is fine for new installs (where the uninstall jars
59# copy.jar, delete.jar, and exec.jar containing duplicate FileUtil
60# classes, or all the classes of i2p.jar, are in a different directory).
61# Be sure there are no other duplicate classes.
62#
63wrapper.java.classpath.1=$INSTALL_PATH/lib/*.jar
64#  uncomment this to use the system classpath as well (e.g. to get tools.jar)
65# wrapper.java.classpath.2=%CLASSPATH%
66
67# Java Library Path (location of Wrapper.DLL or libwrapper.so)
68wrapper.java.library.path.1=$INSTALL_PATH
69wrapper.java.library.path.2=$INSTALL_PATH/lib
70
71# Java Bits.  On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
72wrapper.java.additional.auto_bits=TRUE
73
74# Java Additional Parameters
75# Numbers must be consecutive (except for stripquotes)
76wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
77wrapper.java.additional.2=-Di2p.dir.base="$INSTALL_PATH"
78wrapper.java.additional.2.stripquotes=TRUE
79
80# Prevent the JVM from exporting stats (and thereby causing hundreds of
81# ms long pauses during GC)
82# http://www.evanjones.ca/jvm-mmap-pause.html
83#wrapper.java.additional.3=-XX:+PerfDisableSharedMem
84
85# On some IPv6 enabled systems, I2P and other network-enabled java applications
86# may fail to start. For examples see
87# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044.
88# Two things that may help if you experience this issue
89# 1) "echo 0 > /proc/sys/net/ipv6/bindv6only" as root; or
90# 2) uncomment the next two lines:
91#wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true
92#wrapper.java.additional.4=-Djava.net.preferIPv6Addresses=false
93
94# Jetty says this is a security risk
95# Uncommenting this won't help as the router forces it to true
96# If you really need this, you have to set it in jetty.xml
97# somehow - not sure exactly but here's a clue:
98# org.mortbay.util.FileResource.setCheckAliases(false)
99# wrapper.java.additional.8=-Dorg.mortbay.util.FileResource.checkAliases=false
100# PORTABLE installation:
101# uncomment the following
102#wrapper.java.additional.3=-Di2p.dir.pid="$INSTALL_PATH"
103#wrapper.java.additional.3.stripquotes=TRUE
104#wrapper.java.additional.4=-Di2p.dir.temp="$INSTALL_PATH"
105#wrapper.java.additional.4.stripquotes=TRUE
106#wrapper.java.additional.5=-Di2p.dir.config="$INSTALL_PATH"
107#wrapper.java.additional.5.stripquotes=TRUE
108#
109# Uncomment this for better performance.
110# If it doesn't work, server mode is not available in your JVM.
111# This may not be required if your machine is already "server-class".
112# See http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html
113#wrapper.java.additional.5=-server
114
115# Initial Java Heap Size (in MB)
116#wrapper.java.initmemory=4
117
118# Maximum Java Heap Size (in MB)
119# The JVM's default is 64MB, and I2P can work fine in that, but to handle
120# lots of I2PSnark activity in the same JVM, increasing the default max heap
121# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
122# High-bandwidth routers may need to increase to 256 or more.
123#
124# WARNING - for any changes to take effect, you must completely
125# stop the router and the wrapper. Clicking 'Restart' on your
126# router console will NOT reread this file! You must
127# click "Shutdown", wait 11 minutes, then start i2p.
128#
129wrapper.java.maxmemory=128
130
131# Application parameters.  Add parameters as needed starting from 1
132wrapper.app.parameter.1=net.i2p.router.Router
133
134#********************************************************************
135# Wrapper Logging Properties
136#********************************************************************
137# Enables Debug output from the Wrapper.
138# wrapper.debug=TRUE
139# Format of output for the console.  (See docs for formats)
140wrapper.console.format=PM
141
142# Log Level for console output.  (See docs for log levels)
143wrapper.console.loglevel=INFO
144
145# Log file to use for wrapper output logging.
146# You may wish to change this.
147# NOTE: On Linux/Mac this is overridden in the i2prouter script; changes here will have no effect.
148# System temp directory:
149wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log
150# PORTABLE installation:
151# Use the following instead. I2P will find the logfile here,
152# no need for a wrapper.java.additional line too.
153#wrapper.logfile=$INSTALL_PATH/wrapper.log
154
155# Format of output for the log file.
156# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
157# 'T' for time, 'Z' for millisecond time, and 'M' for message
158# Unfortunately the log timezone cannot be changed, see
159# http://www.nabble.com/Log-message-timezone-td23651317.html
160wrapper.logfile.format=TM
161
162# Log Level for log file output.  (See docs for log levels)
163wrapper.logfile.loglevel=INFO
164
165# Maximum size that the log file will be allowed to grow to before
166#  the log is rolled. Size is specified in bytes.  The default value
167#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
168#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
169wrapper.logfile.maxsize=1m
170
171# Maximum number of rolled log files which will be allowed before old
172#  files are deleted.  The default value of 0 implies no limit.
173wrapper.logfile.maxfiles=2
174
175# Log Level for sys/event log output.  (See docs for log levels)
176wrapper.syslog.loglevel=NONE
177
178# these will shut down or crash the JVM
179wrapper.signal.mode.usr1=IGNORE
180wrapper.signal.mode.usr2=IGNORE
181
182# choose what to do if the JVM kills itself based on the exit code
183wrapper.on_exit.default=SHUTDOWN
184wrapper.on_exit.0=SHUTDOWN
185wrapper.on_exit.1=SHUTDOWN
186# OOM
187wrapper.on_exit.10=RESTART
188# graceful shutdown
189wrapper.on_exit.2=SHUTDOWN
190# hard shutdown
191wrapper.on_exit.3=SHUTDOWN
192# hard restart
193wrapper.on_exit.4=RESTART
194# hard restart
195wrapper.on_exit.5=RESTART
196
197# the router may take a few seconds to save state, etc
198wrapper.jvm_exit.timeout=60
199
200# give the OS 60s to clear all the old sockets / etc before restarting
201# Let's change the default from 60 to 15 seconds and see if anyone moans..
202wrapper.restart.delay=15
203
204wrapper.ping.interval=300
205# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
206# Extend this if you are getting 'JVM appears hung' shutdowns.
207wrapper.ping.timeout=320
208
209# use the wrapper's internal timer thread.  otherwise this would
210# force a restart of the router during daylight savings time as well
211# as any time that the OS clock changes
212wrapper.use_system_time=false
213
214# pid file for the JVM
215# If you plan to have multiple wrappers running on the same machine,
216# you should copy this file, change the location or file name,
217# and edit the i2prouter script to change the WRAPPER_CONF setting
218# to point to the new wrapper.config location.
219# Windows users may wish to uncomment.
220# Linux/Mac users, do not set here, see settings in the i2prouter script.
221# Directory must exist or the wrapper will fail to start.
222# System temp directory:
223#wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid
224# PORTABLE installation:
225# Use the following instead.
226#wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid
227# pid file for the service monitoring the JVM
228#
229# From i2prouter:
230#
231#     PIDDIR="."
232#     APP_NAME="i2p"
233#     PIDFILE="$PIDDIR/$APP_NAME.pid"
234#
235# This means i2prouter looks for './i2p.pid'.
236# See comments above for wrapper.java.pidfile
237# Windows users may wish to uncomment.
238# Linux/Mac users, do not set here, see settings in the i2prouter script.
239# Directory must exist or the wrapper will fail to start.
240# System temp directory:
241#wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
242# PORTABLE installation:
243# Use the following instead.
244#wrapper.pidfile=$INSTALL_PATH/i2p.pid
245
246#********************************************************************
247# Wrapper General Properties
248#********************************************************************
249# Allow for the use of non-contiguous numbered properties
250wrapper.ignore_sequence_gaps=TRUE
251
252# Title to use when running as a console
253wrapper.console.title=I2P Service
254
255# Set permissions used when creating files
256# See http://wrapper.tanukisoftware.com/doc/english/prop-umask.html
257# for a detailed explanation of these settings.
258wrapper.umask=0022
259wrapper.java.umask=0022
260wrapper.logfile.umask=0077
261
262#********************************************************************
263# Wrapper NT Service Properties
264#********************************************************************
265# WARNING - Do not modify any of these properties when an application
266#  using this configuration file has been installed as a service.
267#  Please uninstall the service before modifying this section.  The
268#  service can then be reinstalled.
269
270# Name of the service
271wrapper.ntservice.name=i2p
272
273# Display name of the service
274wrapper.ntservice.displayname=I2P Service
275
276# Description of the service
277wrapper.ntservice.description=The I2P router service
278
279# Service dependencies.  Add dependencies as needed starting from 1
280wrapper.ntservice.dependency.1=
281
282# Mode in which the service is installed.  AUTO_START or DEMAND_START
283wrapper.ntservice.starttype=AUTO_START
284
285# Allow the service to interact with the desktop.
286wrapper.ntservice.interactive=false
287
Note: See TracBrowser for help on using the repository browser.