source: installer/resources/wrapper.config @ 820b99e

Last change on this file since 820b99e was 820b99e, checked in by dev <dev@…>, 6 years ago

Commented out java runtime argument

  • Property mode set to 100644
File size: 11.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# 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=-Dorg.mortbay.http.Version.paranoid=true
78wrapper.java.additional.3=-Dorg.mortbay.xml.XmlParser.NotValidating=true
79wrapper.java.additional.4=-Di2p.dir.base="$INSTALL_PATH"
80wrapper.java.additional.4.stripquotes=TRUE
81
82# Prevent the JVM from exporting stats (and thereby causing hundreds of
83# ms long pauses during GC)
84# http://www.evanjones.ca/jvm-mmap-pause.html
85# wrapper.java.additional.5=-XX:+PerfDisableSharedMem
86
87# On some IPv6 enabled systems, I2P and other network-enabled java applications
88# may fail to start. For examples see
89# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044.
90# Two things that may help if you experience this issue
91# 1) "echo 0 > /proc/sys/net/ipv6/bindv6only" as root; or
92# 2) uncomment the next two lines:
93#wrapper.java.additional.6=-Djava.net.preferIPv4Stack=true
94#wrapper.java.additional.7=-Djava.net.preferIPv6Addresses=false
95
96# Jetty says this is a security risk
97# Uncommenting this won't help as the router forces it to true
98# If you really need this, you have to set it in jetty.xml
99# somehow - not sure exactly but here's a clue:
100# org.mortbay.util.FileResource.setCheckAliases(false)
101# wrapper.java.additional.8=-Dorg.mortbay.util.FileResource.checkAliases=false
102# PORTABLE installation:
103# uncomment the following
104#wrapper.java.additional.8=-Di2p.dir.pid="$INSTALL_PATH"
105#wrapper.java.additional.8.stripquotes=TRUE
106#wrapper.java.additional.9=-Di2p.dir.temp="$INSTALL_PATH"
107#wrapper.java.additional.9.stripquotes=TRUE
108#wrapper.java.additional.10=-Di2p.dir.config="$INSTALL_PATH"
109#wrapper.java.additional.10.stripquotes=TRUE
110#
111# Uncomment this for better performance.
112# If it doesn't work, server mode is not available in your JVM.
113# This may not be required if your machine is already "server-class".
114# See http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html
115#wrapper.java.additional.7=-server
116
117# Initial Java Heap Size (in MB)
118#wrapper.java.initmemory=4
119
120# Maximum Java Heap Size (in MB)
121# The JVM's default is 64MB, and I2P can work fine in that, but to handle
122# lots of I2PSnark activity in the same JVM, increasing the default max heap
123# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
124# High-bandwidth routers may need to increase to 256 or more.
125#
126# WARNING - for any changes to take effect, you must completely
127# stop the router and the wrapper. Clicking 'Restart' on your
128# router console will NOT reread this file! You must
129# click "Shutdown", wait 11 minutes, then start i2p.
130#
131wrapper.java.maxmemory=128
132
133# Application parameters.  Add parameters as needed starting from 1
134wrapper.app.parameter.1=net.i2p.router.Router
135
136#********************************************************************
137# Wrapper Logging Properties
138#********************************************************************
139# Enables Debug output from the Wrapper.
140# wrapper.debug=TRUE
141# Format of output for the console.  (See docs for formats)
142wrapper.console.format=PM
143
144# Log Level for console output.  (See docs for log levels)
145wrapper.console.loglevel=INFO
146
147# Log file to use for wrapper output logging.
148# You may wish to change this.
149# NOTE: On Linux/Mac this is overridden in the i2prouter script; changes here will have no effect.
150# System temp directory:
151wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log
152# PORTABLE installation:
153# Use the following instead. I2P will find the logfile here,
154# no need for a wrapper.java.additional line too.
155#wrapper.logfile=$INSTALL_PATH/wrapper.log
156
157# Format of output for the log file.
158# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
159# 'T' for time, 'Z' for millisecond time, and 'M' for message
160# Unfortunately the log timezone cannot be changed, see
161# http://www.nabble.com/Log-message-timezone-td23651317.html
162wrapper.logfile.format=TM
163
164# Log Level for log file output.  (See docs for log levels)
165wrapper.logfile.loglevel=INFO
166
167# Maximum size that the log file will be allowed to grow to before
168#  the log is rolled. Size is specified in bytes.  The default value
169#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
170#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
171wrapper.logfile.maxsize=1m
172
173# Maximum number of rolled log files which will be allowed before old
174#  files are deleted.  The default value of 0 implies no limit.
175wrapper.logfile.maxfiles=2
176
177# Log Level for sys/event log output.  (See docs for log levels)
178wrapper.syslog.loglevel=NONE
179
180# these will shut down or crash the JVM
181wrapper.signal.mode.usr1=IGNORE
182wrapper.signal.mode.usr2=IGNORE
183
184# choose what to do if the JVM kills itself based on the exit code
185wrapper.on_exit.default=SHUTDOWN
186wrapper.on_exit.0=SHUTDOWN
187wrapper.on_exit.1=SHUTDOWN
188# OOM
189wrapper.on_exit.10=RESTART
190# graceful shutdown
191wrapper.on_exit.2=SHUTDOWN
192# hard shutdown
193wrapper.on_exit.3=SHUTDOWN
194# hard restart
195wrapper.on_exit.4=RESTART
196# hard restart
197wrapper.on_exit.5=RESTART
198
199# the router may take a few seconds to save state, etc
200wrapper.jvm_exit.timeout=60
201
202# give the OS 60s to clear all the old sockets / etc before restarting
203# Let's change the default from 60 to 15 seconds and see if anyone moans..
204wrapper.restart.delay=15
205
206wrapper.ping.interval=300
207# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
208# Extend this if you are getting 'JVM appears hung' shutdowns.
209wrapper.ping.timeout=320
210
211# use the wrapper's internal timer thread.  otherwise this would
212# force a restart of the router during daylight savings time as well
213# as any time that the OS clock changes
214wrapper.use_system_time=false
215
216# pid file for the JVM
217# If you plan to have multiple wrappers running on the same machine,
218# you should copy this file, change the location or file name,
219# and edit the i2prouter script to change the WRAPPER_CONF setting
220# to point to the new wrapper.config location.
221# Windows users may wish to uncomment.
222# Linux/Mac users, do not set here, see settings in the i2prouter script.
223# Directory must exist or the wrapper will fail to start.
224# System temp directory:
225#wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid
226# PORTABLE installation:
227# Use the following instead.
228#wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid
229# pid file for the service monitoring the JVM
230#
231# From i2prouter:
232#
233#     PIDDIR="."
234#     APP_NAME="i2p"
235#     PIDFILE="$PIDDIR/$APP_NAME.pid"
236#
237# This means i2prouter looks for './i2p.pid'.
238# See comments above for wrapper.java.pidfile
239# Windows users may wish to uncomment.
240# Linux/Mac users, do not set here, see settings in the i2prouter script.
241# Directory must exist or the wrapper will fail to start.
242# System temp directory:
243#wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
244# PORTABLE installation:
245# Use the following instead.
246#wrapper.pidfile=$INSTALL_PATH/i2p.pid
247
248#********************************************************************
249# Wrapper General Properties
250#********************************************************************
251# Allow for the use of non-contiguous numbered properties
252wrapper.ignore_sequence_gaps=TRUE
253
254# Title to use when running as a console
255wrapper.console.title=I2P Service
256
257# Set permissions used when creating files
258# See http://wrapper.tanukisoftware.com/doc/english/prop-umask.html
259# for a detailed explanation of these settings.
260wrapper.umask=0022
261wrapper.java.umask=0022
262wrapper.logfile.umask=0077
263
264#********************************************************************
265# Wrapper NT Service Properties
266#********************************************************************
267# WARNING - Do not modify any of these properties when an application
268#  using this configuration file has been installed as a service.
269#  Please uninstall the service before modifying this section.  The
270#  service can then be reinstalled.
271
272# Name of the service
273wrapper.ntservice.name=i2p
274
275# Display name of the service
276wrapper.ntservice.displayname=I2P Service
277
278# Description of the service
279wrapper.ntservice.description=The I2P router service
280
281# Service dependencies.  Add dependencies as needed starting from 1
282wrapper.ntservice.dependency.1=
283
284# Mode in which the service is installed.  AUTO_START or DEMAND_START
285wrapper.ntservice.starttype=AUTO_START
286
287# Allow the service to interact with the desktop.
288wrapper.ntservice.interactive=false
289
Note: See TracBrowser for help on using the repository browser.