freebsd-ports/security/stunnel/files/stunnel.sh
Peter Pentchev 88cba5e382 Update to stunnel-4.00.
*** WARNING WARNING WARNING ***
The stunnel invocation has changed!  The program no longer accepts
command-line options, but is controlled by a config file instead.
Please refer to the stunnel(8) manual page for more information.

PR:		42249
Submitted by:	Dan Langille <dan@langille.org>, lioux
2002-09-20 09:29:11 +00:00

25 lines
421 B
Bash

#!/bin/sh
#
# A sample stunnel startup script written by martti.kuparinen@ericsson.com
#
# $FreeBSD$
#
# Where is the program
STUNNEL="!!PREFIX!!/sbin/stunnel"
case "$1" in
start)
${STUNNEL} !!PREFIX!!/etc/stunnel/stunnel.conf
;;
stop)
killall `basename ${STUNNEL}`
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
;;
esac