source: installer/resources/runplain.sh @ ca5f35a

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

Don't prefer IPv4 but add the option commented out to wrapper.config. Make the option configurable in runplain.sh

  • Property mode set to 100644
File size: 1.0 KB
Line 
1#!/bin/sh
2
3# This runs the router by itself, WITHOUT the wrapper.
4# This means the router will not restart if it crashes.
5# Also, you will be using the default memory size, which is
6# probably not enough for i2p.
7# You should really use the i2prouter script instead.
8#
9
10# Paths
11# Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir
12# should have been replaced by the izpack installer.
13# If you did not run the installer, replace them with the appropriate path.
14I2P="%INSTALL_PATH"
15I2PTEMP="%SYSTEM_java_io_tmpdir"
16
17# Having IPv6 enabled can cause problems with certain configurations. Changing the
18# next value to true may help.
19PREFERv4="false"
20
21export CP="${I2P}" ; for j in "${I2P}/lib/*"  ; do export CP="${CP}:${j}" ; done;
22JAVA=java
23
24JAVAOPTS="-Djava.net.preferIPv4Stack=${PREFERv4} -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
25nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
26echo $! > "${I2PTEMP}/router.pid"
Note: See TracBrowser for help on using the repository browser.