summaryrefslogtreecommitdiff
path: root/security/stunnel/files/stunnel.in
blob: 8edeb0c175dc7aaa01455118c3d9b7771cb663f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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