Advertisement
Guest User

Untitled

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