Ignore:
Timestamp:
Nov 4, 2009 10:27:02 AM (11 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
a3b1c790
Parents:
b65865b8
Message:

Fixups to Slackware scripts

File:
1 edited

Legend:

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

    rb65865b8 r5190b2d  
    1010}
    1111
     12i2p_restart() {
     13 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory restart)"
     14}
     15
     16i2p_status() {
     17 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory status )"
     18}
     19
     20i2p_console() {
     21 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory console )"
     22}
     23
     24i2p_dump() {
     25 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory dump )"
     26}
     27
    1228case "$1" in
    1329'start')
     
    1834  ;;
    1935'restart')
    20   i2p_stop
    21   i2p_start
     36  i2p_restart
     37  ;;
     38'status')
     39  i2p_status
     40  ;;
     41'console')
     42  i2p_console
     43  ;;
     44'dump')
     45  i2p_dump
    2246  ;;
    2347*)
    24   echo "usage $0 start|stop|restart"
     48  echo "usage $0 start|stop|restart|status|console|dump"
    2549  ;;
    2650esac
Note: See TracChangeset for help on using the changeset viewer.