freebsd-ports/net-mgmt/ehnt/files/ehntserv.sh.sample
Yaroslav Tykhiy 7257596e98 New port: net/ehnt - A simple Cisco NetFlow data collector
This is a lightweight but well-featured tool for collecting
NetFlow version 5 packets from Cisco routers.

The implementation includes a simple UDP-to-TCP converting server,
which may be used to replicate NetFlow data to multiple clients.

WWW: http://ehnt.sourceforge.net/

PR:		ports/29459
Submitted by:	Dmitry Morozovsky <marck@rinet.ru>
2001-08-11 17:38:05 +00:00

25 lines
381 B
Bash

#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
if [ -x ${PREFIX}/sbin/ehntserv ]; then
echo -n ' ehntserv'
${PREFIX}/sbin/ehntserv
fi
;;
stop)
echo -n ' ehntserv'
killall ehntserv
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 2
;;
esac
exit 0