mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
27 lines
514 B
Plaintext
27 lines
514 B
Plaintext
|
#!/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
|