source: installer/resources/runplain.sh @ 1250617

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

Make runplain.sh even more shell agnostic

  • 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"
20CP=
21
22for jars in `ls ${I2P}/lib/*.jar`; do CP=${CP}:${jars}; echo $CP; done
23JAVA=java
24
25JAVAOPTS="-Djava.net.preferIPv4Stack=${PREFERv4} -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
26nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
27echo $! > "${I2PTEMP}/router.pid"
Note: See TracBrowser for help on using the repository browser.