home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / bin / i2prouter-nowrapper < prev    next >
Encoding:
Text File  |  2012-10-27  |  998 b   |  28 lines

  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.
  14. I2P="/usr/share/i2p"
  15. I2PTEMP="/tmp"
  16.  
  17. # Having IPv6 enabled can cause problems with certain configurations. Changing the
  18. # next value to true may help. 
  19. PREFERv4="false"
  20. CP=
  21.  
  22. for jars in `ls ${I2P}/lib/*.jar`; do CP=${CP}:${jars}; done
  23. JAVA=java
  24.  
  25. JAVAOPTS="-Djava.net.preferIPv4Stack=${PREFERv4} -Djava.library.path=${I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
  26. nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
  27. echo $! > "${I2PTEMP}/router.pid"
  28.