Changeset 3998ce31 for Slackware/i2p-base/rc.i2p_def
- Timestamp:
- Oct 22, 2010 2:26:13 AM (10 years ago)
- Branches:
- master
- Children:
- e6bf1af9
- Parents:
- e6c45ae5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Slackware/i2p-base/rc.i2p_def
re6c45ae5 r3998ce31 3 3 4 4 i2p_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 6 20 } 7 21 8 22 i2p_stop() { 9 23 /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 10 25 } 11 26 12 27 i2p_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 14 31 } 15 32
Note: See TracChangeset
for help on using the changeset viewer.