2
# Sample stunnel SysV startup file
3
# Copyright by Michal Trojnara 2002
5
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
7
DAEMON=$PREFIX/sbin/stunnel
8
PIDFILE=$PREFIX/var/run/stunnel/stunnel.pid
10
test -f $DAEMON || exit 0
14
echo -n "Starting universal SSL tunnel: stunnel"
15
$DAEMON || echo -n " failed"
19
echo -n "Stopping universal SSL tunnel: stunnel"
20
if test -r $PIDFILE; then
21
kill `cat $PIDFILE` 2> /dev/null || echo -n " failed"
23
echo -n " no PID file"
28
echo "Restarting universal SSL tunnel"
37
echo "Usage: $N {start|stop|restart|force-reload}" >&2