freebsd-ports/security/stunnel/files/stunnel.sh
Steve Price 2c3da6b249 Update to version 3.8.4.
PR:		19637
Submitted by:	maintainer
2000-07-07 19:27:28 +00:00

27 lines
514 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} -d 993 -r localhost:imap -p !!PREFIX!!/etc/stunnel.pem
${STUNNEL} -d 995 -r localhost:pop3 -p !!PREFIX!!/etc/stunnel.pem
;;
stop)
killall `basename ${STUNNEL}`
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
;;
esac