source: installer/resources/wrapper.config @ 8a56531

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

Don't prefer IPv4 but add the option commented out to wrapper.config. Make the option configurable in runplain.sh

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