aboutsummaryrefslogtreecommitdiffstats
path: root/net/pfflowd/files/pfflowd.sh.sample
blob: 65ba59d5c5a4ebd8cef70baad6166a0e5ee7b019 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Enter the host to send the netflow datagrams to, the format
# is IP:PORT (e.g 127.0.0.1:2055)
host="127.0.0.1:2055"

case "$1" in
    start)
        echo -n " pfflowd"
        @@PREFIX@@/sbin/pfflowd -n ${host}
        ;;

    stop)
        if [ ! -f /var/run/pfflowd.pid ]; then
            echo "pfflowd not running"
            exit 64
        fi
        kill `cat /var/run/pfflowd.pid`
        ;;
esac