diff options
Diffstat (limited to 'security/stunnel/files/stunnel.in')
-rw-r--r-- | security/stunnel/files/stunnel.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/stunnel/files/stunnel.in b/security/stunnel/files/stunnel.in new file mode 100644 index 000000000000..dc074e2771a1 --- /dev/null +++ b/security/stunnel/files/stunnel.in @@ -0,0 +1,26 @@ +#!/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 |