mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
c55ca825d6
PR: ports/63336 Submitted by: Andrew Thompson <andy@fud.org.nz>
21 lines
353 B
Bash
21 lines
353 B
Bash
#!/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
|