1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/net/pfflowd/files/pfflowd.sh.sample
Oliver Braun c55ca825d6 Add pfflowd 0.4, convert pfsync states to NetFlow datagrams.
PR:		ports/63336
Submitted by:	Andrew Thompson <andy@fud.org.nz>
2004-02-25 16:02:15 +00:00

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