source: installer/resources/small/wrapper.config @ bb68728

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

Added link to blog post explaining why the flag was added

  • Property mode set to 100644
File size: 6.7 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#********************************************************************
10# Java Application
11wrapper.java.command=java
12
13# Java Main class.  This class must implement the WrapperListener interface
14#  or guarantee that the WrapperManager class is initialized.  Helper
15#  classes are provided to do this for you.  See the Integration section
16#  of the documentation for details.
17wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
18
19# Java Classpath (include wrapper.jar)  Add class path elements as
20#  needed starting from 1
21# i2p sdk, public domain/BSD/Cryptix
22wrapper.java.classpath.1=lib/i2p.jar
23# router, depends on i2p.jar, public domain
24wrapper.java.classpath.2=lib/router.jar
25# compiled jbigi libraries, contains static libGMP, lgpl
26wrapper.java.classpath.3=lib/jbigi.jar
27# sam bridge, public domain (depends on i2p.jar)
28wrapper.java.classpath.4=lib/sam.jar
29# ministreaming lib -interfaces for streaming, BSD (depends on i2p.jar)
30wrapper.java.classpath.5=lib/mstreaming.jar
31# full streaming lib, public domain (depends on mstreaming.jar, i2p.jar)
32wrapper.java.classpath.6=lib/streaming.jar
33# router console, public domain (depends on i2p.jar, router.jar)
34wrapper.java.classpath.7=lib/routerconsole.jar
35# i2ptunnel, GPL (depends on mstreaming.jar, i2p.jar)
36wrapper.java.classpath.8=lib/i2ptunnel.jar
37# jetty libraries (and dependencies), apache licensed
38wrapper.java.classpath.9=lib/org.mortbay.jetty.jar
39wrapper.java.classpath.10=lib/javax.servlet.jar
40wrapper.java.classpath.11=lib/jasper-compiler.jar
41wrapper.java.classpath.12=lib/jasper-runtime.jar
42wrapper.java.classpath.13=lib/commons-logging.jar
43wrapper.java.classpath.14=lib/commons-el.jar
44wrapper.java.classpath.15=lib/ant.jar
45wrapper.java.classpath.16=lib/xercesImpl.jar
46# java service wrapper, BSD
47wrapper.java.classpath.17=lib/wrapper.jar
48# systray, LGPL
49wrapper.java.classpath.18=lib/systray.jar
50wrapper.java.classpath.19=lib/systray4j.jar
51
52# Java Library Path (location of Wrapper.DLL or libwrapper.so)
53wrapper.java.library.path.1=.
54wrapper.java.library.path.2=lib
55
56# Java Additional Parameters
57wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
58wrapper.java.additional.2=-Dorg.mortbay.http.Version.paranoid=true
59wrapper.java.additional.3=-Dorg.mortbay.util.FileResource.checkAliases=false
60wrapper.java.additional.4=-Dorg.mortbay.xml.XmlParser.NotValidating=true
61
62# Prevent the JVM from exporting stats (and thereby causing hundreds of
63# ms long pauses during GC)
64# http://www.evanjones.ca/jvm-mmap-pause.html
65wrapper.java.additional.5=-XX:+PerfDisableSharedMem
66
67# Initial Java Heap Size (in MB)
68#wrapper.java.initmemory=4
69
70# Maximum Java Heap Size (in MB)
71# The JVM's default is 64MB, and I2P can work fine in that, but to handle
72# lots of I2PSnark activity in the same JVM, increasing the default max heap
73# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
74# High-bandwidth routers may need to increase to 256 or more.
75#
76# WARNING - for any changes to take effect, you must completely
77# stop the router and the wrapper. Clicking 'Restart' on your
78# router console will NOT reread this file! You must
79# click "Shutdown", wait 11 minutes, then start i2p.
80#
81# Small Distribution - set to 64MB
82#
83wrapper.java.maxmemory=64
84
85# Application parameters.  Add parameters as needed starting from 1
86wrapper.app.parameter.1=net.i2p.router.Router
87
88#********************************************************************
89# Wrapper Logging Properties
90#********************************************************************
91# Format of output for the console.  (See docs for formats)
92wrapper.console.format=PM
93
94# Log Level for console output.  (See docs for log levels)
95wrapper.console.loglevel=INFO
96
97# Log file to use for wrapper output logging.
98wrapper.logfile=wrapper.log
99
100# Format of output for the log file.  (See docs for formats)
101wrapper.logfile.format=LPTM
102
103# Log Level for log file output.  (See docs for log levels)
104wrapper.logfile.loglevel=INFO
105
106# Maximum size that the log file will be allowed to grow to before
107#  the log is rolled. Size is specified in bytes.  The default value
108#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
109#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
110wrapper.logfile.maxsize=128k
111
112# Maximum number of rolled log files which will be allowed before old
113#  files are deleted.  The default value of 0 implies no limit.
114wrapper.logfile.maxfiles=2
115
116# Log Level for sys/event log output.  (See docs for log levels)
117wrapper.syslog.loglevel=NONE
118
119# choose what to do if the JVM kills itself based on the exit code
120wrapper.on_exit.default=SHUTDOWN
121wrapper.on_exit.0=SHUTDOWN
122wrapper.on_exit.1=SHUTDOWN
123# OOM
124wrapper.on_exit.10=RESTART
125# graceful shutdown
126wrapper.on_exit.2=SHUTDOWN
127# hard shutdown
128wrapper.on_exit.3=SHUTDOWN
129# hard restart
130wrapper.on_exit.4=RESTART
131# hard restart
132wrapper.on_exit.5=RESTART
133
134# the router may take a few seconds to save state, etc
135wrapper.jvm_exit.timeout=10
136
137# give the OS 10s to clear all the old sockets / etc before restarting
138wrapper.restart.delay=10
139
140wrapper.ping.interval=600
141wrapper.ping.timeout=605
142
143# use the wrapper's internal timer thread.  otherwise this would
144# force a restart of the router during daylight savings time as well
145# as any time that the OS clock changes
146wrapper.use_system_time=false
147
148# pid file for the JVM
149wrapper.java.pidfile=routerjvm.pid
150# pid file for the service monitoring the JVM
151#
152# From i2prouter:
153#
154#     PIDDIR="."
155#     APP_NAME="i2p"
156#     PIDFILE="$PIDDIR/$APP_NAME.pid"
157#
158# This means i2prouter looks for './i2p.pid'.
159wrapper.pidfile=i2p.pid
160
161#********************************************************************
162# Wrapper NT Service Properties
163#********************************************************************
164# WARNING - Do not modify any of these properties when an application
165#  using this configuration file has been installed as a service.
166#  Please uninstall the service before modifying this section.  The
167#  service can then be reinstalled.
168
169# Name of the service
170wrapper.ntservice.name=i2p
171
172# Display name of the service
173wrapper.ntservice.displayname=I2P Service
174
175# Description of the service
176wrapper.ntservice.description=The I2P router service
177
178# Service dependencies.  Add dependencies as needed starting from 1
179wrapper.ntservice.dependency.1=
180
181# Mode in which the service is installed.  AUTO_START or DEMAND_START
182wrapper.ntservice.starttype=AUTO_START
183
184# Allow the service to interact with the desktop.
185wrapper.ntservice.interactive=true
186
Note: See TracBrowser for help on using the repository browser.