2010-11-13 00:30:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2008-02-06 16:38:23 +00:00
|
|
|
# This runs the router by itself, WITHOUT the wrapper.
|
|
|
|
# This means the router will not restart if it crashes.
|
|
|
|
# Also, you will be using the default memory size, which is
|
|
|
|
# probably not enough for i2p.
|
|
|
|
# You should really use the i2prouter script instead.
|
|
|
|
#
|
2009-06-13 21:04:27 +00:00
|
|
|
|
|
|
|
# Paths
|
|
|
|
# Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir
|
|
|
|
# should have been replaced by the izpack installer.
|
|
|
|
# If you did not run the installer, replace them with the appropriate path.
|
|
|
|
I2P="%INSTALL_PATH"
|
|
|
|
I2PTEMP="%SYSTEM_java_io_tmpdir"
|
|
|
|
|
2011-06-01 14:42:18 +00:00
|
|
|
# Having IPv6 enabled can cause problems with certain configurations. Changing the
|
|
|
|
# next value to true may help.
|
|
|
|
PREFERv4="false"
|
2011-06-05 19:54:21 +00:00
|
|
|
CP=
|
2011-06-01 14:42:18 +00:00
|
|
|
|
2011-06-07 14:03:11 +00:00
|
|
|
for jars in `ls ${I2P}/lib/*.jar`; do CP=${CP}:${jars}; done
|
2005-09-16 04:12:24 +00:00
|
|
|
JAVA=java
|
|
|
|
|
2011-06-01 14:42:18 +00:00
|
|
|
JAVAOPTS="-Djava.net.preferIPv4Stack=${PREFERv4} -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
|
2011-05-28 20:14:36 +00:00
|
|
|
nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
|
|
|
|
echo $! > "${I2PTEMP}/router.pid"
|