]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/stunnel/files/init
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / stunnel / files / init
1 #!/bin/sh
2 DAEMON=/usr/sbin/stunnel
3 NAME=stunnel
4 DESC="SSH Tunneling"
5 ARGS=""
6
7 test -f $DAEMON || exit 0
8
9 set -e
10
11 case "$1" in
12     start)
13         echo -n "* starting $DESC: $NAME... "
14         start-stop-daemon -S -x $DAEMON -- $ARGS
15         echo "done."
16         ;;
17     stop)
18         echo -n "* stopping $DESC: $NAME... "
19         start-stop-daemon -K -x $DAEMON
20         echo "done."
21         ;;
22     restart)
23         echo "* restarting $DESC: $NAME... "
24         $0 stop
25         $0 start
26         echo "done."
27         ;;
28     *)
29         echo "Usage: $0 {start|stop|restart}"
30         exit 1
31         ;;
32 esac
33
34 exit 0