source: Slackware/i2p-base/rc.i2p_def @ c4870021

Last change on this file since c4870021 was c4870021, checked in by sponge <sponge@…>, 11 years ago

SlackBuild?!

  • Property mode set to 100644
File size: 420 bytes
Line 
1#!/bin/sh
2# Start/stop i2p service.
3
4i2p_start() {
5 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory start )"
6}
7
8i2p_stop() {
9 /bin/su - -c "( export PATH=\"$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin\"; directory stop )"
10}
11
12case "$1" in
13'start')
14  i2p_start
15  ;;
16'stop')
17  i2p_stop
18  ;;
19'restart')
20  i2p_stop
21  i2p_start
22  ;;
23*)
24  echo "usage $0 start|stop|restart"
25  ;;
26esac
27
Note: See TracBrowser for help on using the repository browser.