Changeset 3998ce31


Ignore:
Timestamp:
Oct 22, 2010 2:26:13 AM (10 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
e6bf1af9
Parents:
e6c45ae5
Message:

Fix rc.i2p for slackware package

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Slackware/i2p-base/rc.i2p_def

    re6c45ae5 r3998ce31  
    33
    44i2p_start() {
    5  /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory start )"
     5 # Check if router is up first!
     6 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory status )" > /dev/null
     7 if [ ! $? -eq 0 ] ; then {
     8  # I2p is already running, so tell the user.
     9  echo "I2P is already running..."
     10  i2p_status
     11 }
     12 else
     13 {
     14  # Just in-case there are leftover junk in /tmp...
     15  rm -Rf `grep /tmp/hsperfdata_root/* -le i2p` /tmp/i2p-*.tmp /tmp/router.ping
     16  # Now that all junk is cleaned up, start.
     17  /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory start )"
     18 }
     19 fi
    620}
    721
    822i2p_stop() {
    923 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory stop )"
     24 rm -Rf `grep /tmp/hsperfdata_root/* -le i2p` /tmp/i2p-*.tmp /tmp/router.ping
    1025}
    1126
    1227i2p_restart() {
    13  /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory restart)"
     28 # We want a FULL cycle here, not the wrappers idea of this!
     29 i2p_stop
     30 i2p_start
    1431}
    1532
  • history.txt

    re6c45ae5 r3998ce31  
     12010-10-22 sponge
     2    * Fix rc.i2p for slackware package
     3
    142010-10-10 sponge
    25    * Fulfill Request for name resolving in BOB
Note: See TracChangeset for help on using the changeset viewer.