source: installer/resources/wrapper.config @ 115f3e1

Last change on this file since 115f3e1 was 115f3e1, checked in by kytv <kytv@…>, 9 years ago

adding a few new options from the 3.5.9 config file

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