2011-08-27 23:24:29 +00:00
|
|
|
#encoding=UTF-8
|
2005-04-03 13:33:29 +00:00
|
|
|
#********************************************************************
|
|
|
|
# Wrapper Properties
|
2008-02-05 03:14:18 +00:00
|
|
|
#
|
|
|
|
# WARNING - for any changes to take effect, you must completely
|
|
|
|
# stop the router and the wrapper. Clicking 'Restart' on your
|
|
|
|
# router console will NOT reread this file! You must
|
|
|
|
# click "Shutdown", wait 11 minutes, then start i2p.
|
|
|
|
#
|
2008-12-02 16:23:54 +00:00
|
|
|
# WARNING - The wrapper is NOT run (and this file is not used)
|
|
|
|
# if you start I2P with the 'no window' icon on Windows, or
|
|
|
|
# with the runplain.sh script on Linux. Use the 'restartable'
|
|
|
|
# icon on Windows or the i2prouter script on Linux to run the wrapper.
|
|
|
|
#
|
2009-07-26 14:55:01 +00:00
|
|
|
# NOTE - Directory organization:
|
|
|
|
# The standard I2P Installation will set up a "split" directory structure
|
|
|
|
# with code in the install directory, data and configuration files in the
|
|
|
|
# user's home directory, and temporary files in the system temporary directory.
|
|
|
|
# To set up a single-directory "portable" installation suitable for
|
|
|
|
# a USB stick, make several changes specified below (search for PORTABLE).
|
|
|
|
#
|
2009-06-12 12:23:25 +00:00
|
|
|
# NOTE - The izpack installer performs variable subsitiution on this
|
|
|
|
# file upon installation. If you did not use izpack, you must
|
|
|
|
# find and replace all instances of (dollar)INSTALL_PATH and
|
|
|
|
# (dollar)SYSTEM_java_io_tmpdir with appropriate values
|
|
|
|
# (perhaps . and /var/tmp, respectively)
|
|
|
|
#
|
2005-04-03 13:33:29 +00:00
|
|
|
#********************************************************************
|
|
|
|
# Java Application
|
|
|
|
wrapper.java.command=java
|
2011-08-27 23:24:29 +00:00
|
|
|
# Specify a specific java binary:
|
|
|
|
#set.JAVA_HOME=/java/path
|
|
|
|
#wrapper.java.command=%JAVA_HOME%/bin/java
|
2011-11-02 00:05:51 +00:00
|
|
|
# Gentoo uses the following:
|
|
|
|
#wrapper.java.command=/etc/java-config-2/current-system-vm/bin/java
|
2012-10-10 23:32:04 +00:00
|
|
|
#
|
2011-08-27 23:24:29 +00:00
|
|
|
# Tell the Wrapper to log the full generated Java command line.
|
|
|
|
#wrapper.java.command.loglevel=INFO
|
2012-10-10 23:32:04 +00:00
|
|
|
##
|
|
|
|
## PORTABLE installation:
|
|
|
|
# A portable Java installation can be configured thusly:
|
|
|
|
#set.JAVA_HOME=C:\path\to\your\portable\java\installation
|
|
|
|
#wrapper.java.command=%JAVA_HOME\bin\java.exe
|
|
|
|
##
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Java Main class. This class must implement the WrapperListener interface
|
|
|
|
# or guarantee that the WrapperManager class is initialized. Helper
|
|
|
|
# classes are provided to do this for you. See the Integration section
|
|
|
|
# of the documentation for details.
|
|
|
|
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
|
|
|
|
|
|
|
|
# Java Classpath (include wrapper.jar) Add class path elements as
|
|
|
|
# needed starting from 1
|
2009-06-11 23:38:15 +00:00
|
|
|
#
|
|
|
|
# Doing it this way means we can add new apps without asking people
|
|
|
|
# to update their wrapper.config.
|
|
|
|
# The downside is that we lose control over classpath order,
|
|
|
|
# This is fine for new installs (where the uninstall jars
|
|
|
|
# copy.jar, delete.jar, and exec.jar containing duplicate FileUtil
|
|
|
|
# classes, or all the classes of i2p.jar, are in a different directory).
|
|
|
|
# Be sure there are no other duplicate classes.
|
|
|
|
#
|
2009-06-12 12:23:25 +00:00
|
|
|
wrapper.java.classpath.1=$INSTALL_PATH/lib/*.jar
|
2009-06-11 23:38:15 +00:00
|
|
|
# uncomment this to use the system classpath as well (e.g. to get tools.jar)
|
|
|
|
# wrapper.java.classpath.2=%CLASSPATH%
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
|
2009-06-12 12:23:25 +00:00
|
|
|
wrapper.java.library.path.1=$INSTALL_PATH
|
|
|
|
wrapper.java.library.path.2=$INSTALL_PATH/lib
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2011-08-27 23:24:29 +00:00
|
|
|
# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
|
2019-10-27 14:32:43 +00:00
|
|
|
wrapper.java.additional.auto_bits=FALSE
|
2011-08-27 23:24:29 +00:00
|
|
|
|
2005-04-03 13:33:29 +00:00
|
|
|
# Java Additional Parameters
|
2009-07-26 14:55:01 +00:00
|
|
|
# Numbers must be consecutive (except for stripquotes)
|
2005-04-03 13:33:29 +00:00
|
|
|
wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
|
2015-04-03 23:40:39 +00:00
|
|
|
wrapper.java.additional.2=-Di2p.dir.base="$INSTALL_PATH"
|
|
|
|
wrapper.java.additional.2.stripquotes=TRUE
|
2011-06-01 14:42:18 +00:00
|
|
|
|
2024-11-28 10:50:26 -05:00
|
|
|
# Suppress JNI warning in JRE 24+, and eventual restriction
|
|
|
|
# See https://openjdk.org/jeps/472
|
|
|
|
# This will fail on JRE 11 or lower, works on JRE 17+
|
|
|
|
#wrapper.java.additional.3=--enable-native-access=ALL-UNNAMED
|
|
|
|
# Alternative that _may_ work on all JRE versions:
|
|
|
|
#set.JDK_JAVA_OPTIONS=--enable-native-access=ALL-UNNAMED
|
|
|
|
|
2015-04-02 16:05:43 +00:00
|
|
|
# Prevent the JVM from exporting stats (and thereby causing hundreds of
|
|
|
|
# ms long pauses during GC)
|
2015-04-02 20:44:52 +00:00
|
|
|
# http://www.evanjones.ca/jvm-mmap-pause.html
|
2015-04-03 23:40:39 +00:00
|
|
|
#wrapper.java.additional.3=-XX:+PerfDisableSharedMem
|
2015-04-02 16:05:43 +00:00
|
|
|
|
2011-06-01 14:42:18 +00:00
|
|
|
# On some IPv6 enabled systems, I2P and other network-enabled java applications
|
|
|
|
# may fail to start. For examples see
|
2011-08-27 23:24:29 +00:00
|
|
|
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044.
|
2011-06-01 14:42:18 +00:00
|
|
|
# Two things that may help if you experience this issue
|
|
|
|
# 1) "echo 0 > /proc/sys/net/ipv6/bindv6only" as root; or
|
2011-06-16 15:10:53 +00:00
|
|
|
# 2) uncomment the next two lines:
|
2015-04-03 23:40:39 +00:00
|
|
|
#wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true
|
|
|
|
#wrapper.java.additional.4=-Djava.net.preferIPv6Addresses=false
|
2011-06-01 14:42:18 +00:00
|
|
|
|
2010-01-29 13:55:16 +00:00
|
|
|
# Jetty says this is a security risk
|
|
|
|
# Uncommenting this won't help as the router forces it to true
|
|
|
|
# If you really need this, you have to set it in jetty.xml
|
|
|
|
# somehow - not sure exactly but here's a clue:
|
|
|
|
# org.mortbay.util.FileResource.setCheckAliases(false)
|
2015-04-02 16:05:43 +00:00
|
|
|
# wrapper.java.additional.8=-Dorg.mortbay.util.FileResource.checkAliases=false
|
2009-07-26 14:55:01 +00:00
|
|
|
# PORTABLE installation:
|
|
|
|
# uncomment the following
|
2015-04-03 23:40:39 +00:00
|
|
|
#wrapper.java.additional.3=-Di2p.dir.pid="$INSTALL_PATH"
|
|
|
|
#wrapper.java.additional.3.stripquotes=TRUE
|
|
|
|
#wrapper.java.additional.4=-Di2p.dir.temp="$INSTALL_PATH"
|
|
|
|
#wrapper.java.additional.4.stripquotes=TRUE
|
|
|
|
#wrapper.java.additional.5=-Di2p.dir.config="$INSTALL_PATH"
|
|
|
|
#wrapper.java.additional.5.stripquotes=TRUE
|
2009-07-26 14:55:01 +00:00
|
|
|
#
|
2008-11-21 16:29:16 +00:00
|
|
|
# Uncomment this for better performance.
|
|
|
|
# If it doesn't work, server mode is not available in your JVM.
|
|
|
|
# This may not be required if your machine is already "server-class".
|
|
|
|
# See http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html
|
2015-04-03 23:40:39 +00:00
|
|
|
#wrapper.java.additional.5=-server
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Initial Java Heap Size (in MB)
|
|
|
|
#wrapper.java.initmemory=4
|
|
|
|
|
|
|
|
# Maximum Java Heap Size (in MB)
|
2005-12-18 05:52:19 +00:00
|
|
|
# The JVM's default is 64MB, and I2P can work fine in that, but to handle
|
|
|
|
# lots of I2PSnark activity in the same JVM, increasing the default max heap
|
|
|
|
# size should help. Feel free to reduce this if not using I2PSnark in the jvm
|
2019-01-09 13:29:36 +00:00
|
|
|
# High-bandwidth routers may need to increase to 512 or more.
|
2008-02-05 03:14:18 +00:00
|
|
|
#
|
|
|
|
# WARNING - for any changes to take effect, you must completely
|
|
|
|
# stop the router and the wrapper. Clicking 'Restart' on your
|
|
|
|
# router console will NOT reread this file! You must
|
|
|
|
# click "Shutdown", wait 11 minutes, then start i2p.
|
|
|
|
#
|
2019-01-09 13:29:36 +00:00
|
|
|
wrapper.java.maxmemory=256
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Application parameters. Add parameters as needed starting from 1
|
|
|
|
wrapper.app.parameter.1=net.i2p.router.Router
|
|
|
|
|
|
|
|
#********************************************************************
|
|
|
|
# Wrapper Logging Properties
|
|
|
|
#********************************************************************
|
2011-08-27 23:24:29 +00:00
|
|
|
# Enables Debug output from the Wrapper.
|
|
|
|
# wrapper.debug=TRUE
|
2019-08-30 18:38:12 +00:00
|
|
|
# Format of output for the console. See below or https://wrapper.tanukisoftware.com/doc/english/prop-logfile-format.html
|
2005-04-03 13:33:29 +00:00
|
|
|
wrapper.console.format=PM
|
|
|
|
|
|
|
|
# Log Level for console output. (See docs for log levels)
|
|
|
|
wrapper.console.loglevel=INFO
|
|
|
|
|
|
|
|
# Log file to use for wrapper output logging.
|
2012-02-04 13:11:54 +00:00
|
|
|
# You may wish to change this.
|
|
|
|
# NOTE: On Linux/Mac this is overridden in the i2prouter script; changes here will have no effect.
|
|
|
|
# System temp directory:
|
2009-06-13 21:04:27 +00:00
|
|
|
wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log
|
2009-07-26 14:55:01 +00:00
|
|
|
# PORTABLE installation:
|
|
|
|
# Use the following instead. I2P will find the logfile here,
|
|
|
|
# no need for a wrapper.java.additional line too.
|
|
|
|
#wrapper.logfile=$INSTALL_PATH/wrapper.log
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2009-08-21 23:36:21 +00:00
|
|
|
# Format of output for the log file.
|
|
|
|
# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
|
|
|
|
# 'T' for time, 'Z' for millisecond time, and 'M' for message
|
|
|
|
# Unfortunately the log timezone cannot be changed, see
|
|
|
|
# http://www.nabble.com/Log-message-timezone-td23651317.html
|
|
|
|
wrapper.logfile.format=TM
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Log Level for log file output. (See docs for log levels)
|
|
|
|
wrapper.logfile.loglevel=INFO
|
|
|
|
|
|
|
|
# Maximum size that the log file will be allowed to grow to before
|
|
|
|
# the log is rolled. Size is specified in bytes. The default value
|
|
|
|
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
|
|
|
|
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
|
2016-04-27 15:46:24 +00:00
|
|
|
wrapper.logfile.maxsize=4m
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# Maximum number of rolled log files which will be allowed before old
|
|
|
|
# files are deleted. The default value of 0 implies no limit.
|
|
|
|
wrapper.logfile.maxfiles=2
|
|
|
|
|
|
|
|
# Log Level for sys/event log output. (See docs for log levels)
|
|
|
|
wrapper.syslog.loglevel=NONE
|
|
|
|
|
2012-01-08 13:15:47 +00:00
|
|
|
# these will shut down or crash the JVM
|
|
|
|
wrapper.signal.mode.usr1=IGNORE
|
|
|
|
wrapper.signal.mode.usr2=IGNORE
|
|
|
|
|
2005-04-03 13:33:29 +00:00
|
|
|
# choose what to do if the JVM kills itself based on the exit code
|
|
|
|
wrapper.on_exit.default=SHUTDOWN
|
|
|
|
wrapper.on_exit.0=SHUTDOWN
|
|
|
|
wrapper.on_exit.1=SHUTDOWN
|
|
|
|
# OOM
|
|
|
|
wrapper.on_exit.10=RESTART
|
|
|
|
# graceful shutdown
|
|
|
|
wrapper.on_exit.2=SHUTDOWN
|
|
|
|
# hard shutdown
|
|
|
|
wrapper.on_exit.3=SHUTDOWN
|
|
|
|
# hard restart
|
|
|
|
wrapper.on_exit.4=RESTART
|
|
|
|
# hard restart
|
|
|
|
wrapper.on_exit.5=RESTART
|
|
|
|
|
|
|
|
# the router may take a few seconds to save state, etc
|
2011-11-09 18:33:06 +00:00
|
|
|
wrapper.jvm_exit.timeout=60
|
2005-04-03 13:33:29 +00:00
|
|
|
|
|
|
|
# give the OS 60s to clear all the old sockets / etc before restarting
|
2009-07-16 20:15:00 +00:00
|
|
|
# Let's change the default from 60 to 15 seconds and see if anyone moans..
|
|
|
|
wrapper.restart.delay=15
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2009-08-03 14:18:55 +00:00
|
|
|
wrapper.ping.interval=300
|
|
|
|
# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
|
|
|
|
# Extend this if you are getting 'JVM appears hung' shutdowns.
|
|
|
|
wrapper.ping.timeout=320
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2011-08-27 23:24:29 +00:00
|
|
|
# use the wrapper's internal timer thread. otherwise this would
|
2005-04-03 13:33:29 +00:00
|
|
|
# force a restart of the router during daylight savings time as well
|
|
|
|
# as any time that the OS clock changes
|
|
|
|
wrapper.use_system_time=false
|
|
|
|
|
|
|
|
# pid file for the JVM
|
2009-06-12 12:23:25 +00:00
|
|
|
# If you plan to have multiple wrappers running on the same machine,
|
|
|
|
# you should copy this file, change the location or file name,
|
|
|
|
# and edit the i2prouter script to change the WRAPPER_CONF setting
|
|
|
|
# to point to the new wrapper.config location.
|
2012-02-04 13:11:54 +00:00
|
|
|
# Windows users may wish to uncomment.
|
|
|
|
# Linux/Mac users, do not set here, see settings in the i2prouter script.
|
|
|
|
# Directory must exist or the wrapper will fail to start.
|
|
|
|
# System temp directory:
|
|
|
|
#wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid
|
2009-07-26 14:55:01 +00:00
|
|
|
# PORTABLE installation:
|
|
|
|
# Use the following instead.
|
|
|
|
#wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid
|
2005-04-03 13:33:29 +00:00
|
|
|
# pid file for the service monitoring the JVM
|
|
|
|
#
|
|
|
|
# From i2prouter:
|
|
|
|
#
|
|
|
|
# PIDDIR="."
|
|
|
|
# APP_NAME="i2p"
|
|
|
|
# PIDFILE="$PIDDIR/$APP_NAME.pid"
|
|
|
|
#
|
|
|
|
# This means i2prouter looks for './i2p.pid'.
|
2009-06-12 12:23:25 +00:00
|
|
|
# See comments above for wrapper.java.pidfile
|
2012-02-04 13:11:54 +00:00
|
|
|
# Windows users may wish to uncomment.
|
|
|
|
# Linux/Mac users, do not set here, see settings in the i2prouter script.
|
|
|
|
# Directory must exist or the wrapper will fail to start.
|
|
|
|
# System temp directory:
|
|
|
|
#wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
|
2009-07-26 14:55:01 +00:00
|
|
|
# PORTABLE installation:
|
|
|
|
# Use the following instead.
|
|
|
|
#wrapper.pidfile=$INSTALL_PATH/i2p.pid
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2011-08-27 23:24:29 +00:00
|
|
|
#********************************************************************
|
|
|
|
# Wrapper General Properties
|
|
|
|
#********************************************************************
|
|
|
|
# Allow for the use of non-contiguous numbered properties
|
|
|
|
wrapper.ignore_sequence_gaps=TRUE
|
|
|
|
|
|
|
|
# Title to use when running as a console
|
|
|
|
wrapper.console.title=I2P Service
|
|
|
|
|
2011-09-14 01:15:10 +00:00
|
|
|
# Set permissions used when creating files
|
|
|
|
# See http://wrapper.tanukisoftware.com/doc/english/prop-umask.html
|
|
|
|
# for a detailed explanation of these settings.
|
|
|
|
wrapper.umask=0022
|
|
|
|
wrapper.java.umask=0022
|
2013-11-09 16:19:33 +00:00
|
|
|
wrapper.logfile.umask=0077
|
2011-09-14 01:15:10 +00:00
|
|
|
|
2005-04-03 13:33:29 +00:00
|
|
|
#********************************************************************
|
|
|
|
# Wrapper NT Service Properties
|
|
|
|
#********************************************************************
|
|
|
|
# WARNING - Do not modify any of these properties when an application
|
|
|
|
# using this configuration file has been installed as a service.
|
|
|
|
# Please uninstall the service before modifying this section. The
|
|
|
|
# service can then be reinstalled.
|
|
|
|
|
|
|
|
# Name of the service
|
|
|
|
wrapper.ntservice.name=i2p
|
|
|
|
|
|
|
|
# Display name of the service
|
|
|
|
wrapper.ntservice.displayname=I2P Service
|
|
|
|
|
|
|
|
# Description of the service
|
|
|
|
wrapper.ntservice.description=The I2P router service
|
|
|
|
|
|
|
|
# Service dependencies. Add dependencies as needed starting from 1
|
|
|
|
wrapper.ntservice.dependency.1=
|
|
|
|
|
|
|
|
# Mode in which the service is installed. AUTO_START or DEMAND_START
|
|
|
|
wrapper.ntservice.starttype=AUTO_START
|
|
|
|
|
|
|
|
# Allow the service to interact with the desktop.
|
2011-06-21 23:42:34 +00:00
|
|
|
wrapper.ntservice.interactive=false
|
2005-04-03 13:33:29 +00:00
|
|
|
|
2015-12-06 17:33:44 +00:00
|
|
|
# http://wrapper.tanukisoftware.com/doc/english/prop-check-deadlock.html
|
|
|
|
# requires wrapper 3.5.0 or higher
|
|
|
|
# interval is seconds
|
|
|
|
wrapper.check.deadlock=TRUE
|
|
|
|
wrapper.check.deadlock.interval=3699
|
|
|
|
wrapper.check.deadlock.action=DUMP,RESTART
|
|
|
|
wrapper.check.deadlock.output=FULL
|