aboutsummaryrefslogtreecommitdiffstats
path: root/security/racoon2/files/racoon.sh
blob: d6a5c1b3098ab92bdbe99502a1dfa5e1129c24bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

case "$1" in
    start)
        if [ -x %PREFIX%/sbin/racoon ]; then
            %PREFIX%/sbin/racoon -f %PREFIX%/etc/racoon/racoon.conf && echo -n ' racoon'
        fi
    ;;

    stop)
        /usr/bin/killall racoon && echo -n ' racoon'
    ;;
    
    *)
        echo "Usage: `basename $0` { start | stop }"
        exit 64
    ;;
esac