88cba5e382
*** 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
25 lines
421 B
Bash
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
|