3
# flow-capture Captures flow PDU's from a Cisco router.
5
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
6
# Modified for Debian GNU/Linux by
7
# Ian Murdock <imurdock@gnu.ai.mit.edu> and
8
# Anibal Monsalve Salazar <A.Monsalve.Salazar@IEEE.org>
10
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
11
DAEMON=/usr/bin/flow-capture
12
CONFIG=/etc/flow-tools/flow-capture.conf
16
test -f $DAEMON || exit 0
17
test -f $CONFIG || exit 0
19
pid=`pidof $DAEMON` || true
24
echo "Sorry, flow-capture is already running."
28
lines=`grep -E " |\t" /etc/flow-tools/flow-capture.conf | grep -v "^#"`
29
echo -n "Starting $DESC: "
30
for args in $lines; do
37
echo -n "Stopping $DESC: "
38
pid=`pidof $DAEMON` || true
40
kill -TERM $pid >/dev/null 2>&1
50
echo "Usage: $N {start|stop|restart|force-reload}" >&2