updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / i2p-portable / i2prouter
blobd428862c406454f83aa63159b2a83d3160419882
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting i2p-Router"
9 /opt/i2p/i2prouter start > /dev/null 2>&1
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 stat_done
14 add_daemon i2prouter
17 stop)
18 stat_busy "Stopping i2p-Router"
19 /opt/i2p/i2prouter stop > /dev/null 2>&1
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 stat_done
24 rm_daemon i2prouter
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
32 console)
33 /opt/i2p/i2prouter console
35 status)
36 /opt/i2p/i2prouter status
38 dump)
39 /opt/i2p/i2prouter dump
42 echo "usage: $0 {start|stop|restart|console|status|dump}"
44 esac