expedite: use a tar.bz2 tarball to save bandwitdh and disk space
[buildroot-gz.git] / package / stunnel / S50stunnel
blob04637b694c036eedfed641b1fc6e5e8f37fe7b9c
1 #!/bin/sh
3 start() {
4 printf "Starting stunnel: "
5 start-stop-daemon -S -q -p /var/run/stunnel.pid --exec /usr/bin/stunnel
6 [ $? = 0 ] && echo "OK" || echo "FAIL"
9 stop() {
10 printf "Stopping stunnel: "
11 start-stop-daemon -K -q -p /var/run/stunnel.pid
12 [ $? = 0 ] && echo "OK" || echo "FAIL"
15 restart() {
16 stop
17 start
20 case "$1" in
21 start)
22 start
24 stop)
25 stop
27 restart|reload)
28 restart
31 echo "Usage: $0 {start|stop|restart}"
32 exit 1
33 esac
35 exit $?