source: installer/resources/wrapper.config @ dfd3607

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

Setting wrapper.ntservice.interactive=false so that a browser isn't opened at startup in Windows.

  • Property mode set to 100644
File size: 9.6 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 next two lines:
70#wrapper.java.additional.5=-Djava.net.preferIPv4Stack=true
71#wrapper.java.additional.6=-Djava.net.preferIPv6Addresses=false
72
73# Jetty says this is a security risk
74# Uncommenting this won't help as the router forces it to true
75# If you really need this, you have to set it in jetty.xml
76# somehow - not sure exactly but here's a clue:
77# org.mortbay.util.FileResource.setCheckAliases(false)
78# wrapper.java.additional.7=-Dorg.mortbay.util.FileResource.checkAliases=false
79# PORTABLE installation:
80# uncomment the following
81#wrapper.java.additional.7=-Di2p.dir.pid="$INSTALL_PATH"
82#wrapper.java.additional.7.stripquotes=TRUE
83#wrapper.java.additional.8=-Di2p.dir.temp="$INSTALL_PATH"
84#wrapper.java.additional.8.stripquotes=TRUE
85#wrapper.java.additional.9=-Di2p.dir.config="$INSTALL_PATH"
86#wrapper.java.additional.9.stripquotes=TRUE
87#
88# Uncomment this for better performance.
89# If it doesn't work, server mode is not available in your JVM.
90# This may not be required if your machine is already "server-class".
91# See http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html
92#wrapper.java.additional.7=-server
93
94# Initial Java Heap Size (in MB)
95#wrapper.java.initmemory=4
96
97# Maximum Java Heap Size (in MB)
98# The JVM's default is 64MB, and I2P can work fine in that, but to handle
99# lots of I2PSnark activity in the same JVM, increasing the default max heap
100# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
101# High-bandwidth routers may need to increase to 256 or more.
102#
103# WARNING - for any changes to take effect, you must completely
104# stop the router and the wrapper. Clicking 'Restart' on your
105# router console will NOT reread this file! You must
106# click "Shutdown", wait 11 minutes, then start i2p.
107#
108wrapper.java.maxmemory=128
109
110# Application parameters.  Add parameters as needed starting from 1
111wrapper.app.parameter.1=net.i2p.router.Router
112
113#********************************************************************
114# Wrapper Logging Properties
115#********************************************************************
116# Format of output for the console.  (See docs for formats)
117wrapper.console.format=PM
118
119# Log Level for console output.  (See docs for log levels)
120wrapper.console.loglevel=INFO
121
122# Log file to use for wrapper output logging.
123# You may wish to change this on linux so the log is
124# preserved across OS restarts.
125# If you do change it, add the following line above to
126# tell the router where to find the wrapper log
127# (change X to the next available number)
128# wrapper.java.additional.X=-Dwrapper.logfile=/path/to/wrapper.log
129wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log
130# PORTABLE installation:
131# Use the following instead. I2P will find the logfile here,
132# no need for a wrapper.java.additional line too.
133#wrapper.logfile=$INSTALL_PATH/wrapper.log
134
135# Format of output for the log file.
136# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
137# 'T' for time, 'Z' for millisecond time, and 'M' for message
138# Unfortunately the log timezone cannot be changed, see
139# http://www.nabble.com/Log-message-timezone-td23651317.html
140wrapper.logfile.format=TM
141
142# Log Level for log file output.  (See docs for log levels)
143wrapper.logfile.loglevel=INFO
144
145# Maximum size that the log file will be allowed to grow to before
146#  the log is rolled. Size is specified in bytes.  The default value
147#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
148#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
149wrapper.logfile.maxsize=1m
150
151# Maximum number of rolled log files which will be allowed before old
152#  files are deleted.  The default value of 0 implies no limit.
153wrapper.logfile.maxfiles=2
154
155# Log Level for sys/event log output.  (See docs for log levels)
156wrapper.syslog.loglevel=NONE
157
158# choose what to do if the JVM kills itself based on the exit code
159wrapper.on_exit.default=SHUTDOWN
160wrapper.on_exit.0=SHUTDOWN
161wrapper.on_exit.1=SHUTDOWN
162# OOM
163wrapper.on_exit.10=RESTART
164# graceful shutdown
165wrapper.on_exit.2=SHUTDOWN
166# hard shutdown
167wrapper.on_exit.3=SHUTDOWN
168# hard restart
169wrapper.on_exit.4=RESTART
170# hard restart
171wrapper.on_exit.5=RESTART
172
173# the router may take a few seconds to save state, etc
174wrapper.jvm_exit.timeout=30
175
176# give the OS 60s to clear all the old sockets / etc before restarting
177# Let's change the default from 60 to 15 seconds and see if anyone moans..
178wrapper.restart.delay=15
179
180wrapper.ping.interval=300
181# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
182# Extend this if you are getting 'JVM appears hung' shutdowns.
183wrapper.ping.timeout=320
184
185# use the wrapper's internal timer thread.  otherwise this would
186# force a restart of the router during daylight savings time as well
187# as any time that the OS clock changes
188wrapper.use_system_time=false
189
190# pid file for the JVM
191# If you plan to have multiple wrappers running on the same machine,
192# you should copy this file, change the location or file name,
193# and edit the i2prouter script to change the WRAPPER_CONF setting
194# to point to the new wrapper.config location.
195wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid
196# PORTABLE installation:
197# Use the following instead.
198#wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid
199# pid file for the service monitoring the JVM
200#
201# From i2prouter:
202#
203#     PIDDIR="."
204#     APP_NAME="i2p"
205#     PIDFILE="$PIDDIR/$APP_NAME.pid"
206#
207# This means i2prouter looks for './i2p.pid'.
208# See comments above for wrapper.java.pidfile
209wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
210# PORTABLE installation:
211# Use the following instead.
212#wrapper.pidfile=$INSTALL_PATH/i2p.pid
213
214#********************************************************************
215# Wrapper NT Service Properties
216#********************************************************************
217# WARNING - Do not modify any of these properties when an application
218#  using this configuration file has been installed as a service.
219#  Please uninstall the service before modifying this section.  The
220#  service can then be reinstalled.
221
222# Name of the service
223wrapper.ntservice.name=i2p
224
225# Display name of the service
226wrapper.ntservice.displayname=I2P Service
227
228# Description of the service
229wrapper.ntservice.description=The I2P router service
230
231# Service dependencies.  Add dependencies as needed starting from 1
232wrapper.ntservice.dependency.1=
233
234# Mode in which the service is installed.  AUTO_START or DEMAND_START
235wrapper.ntservice.starttype=AUTO_START
236
237# Allow the service to interact with the desktop.
238wrapper.ntservice.interactive=false
239
Note: See TracBrowser for help on using the repository browser.