1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/net/netams/files/netams.sh
Edwin Groothuis 336ae31855 NeTAMS - Network Traffic Accounting and Monitoring Software
NeTAMS is a Network Traffic Accounting and Monitoring Software.
	It runs as a daemon under FreeBSD and Linux operating systems.
	Collects an IP traffic information flowing via your PC/UNIX
	or Cisco router, filters it, aggregates, stores onto HASH/SQL
	database, and makes SMTP/HTML reports to site administrator.
	Anoter features are flexible policy targets, firewalling,
	access control, quotas, scheduler and much much more.

PR:		ports/46777
Submitted by:	Yuriy N. Shkandybin <jura@happychance.com>
2003-04-05 08:20:27 +00:00

27 lines
426 B
Bash

#!/bin/sh
case "$1" in
start)
sleep 3;
/bin/mkdir -p /var/run/netams
if [ -x /usr/local/libexec/netams ]; then
if [ -f /usr/local/etc/netams.conf ]; then
/usr/local/libexec/netams -lf /usr/local/etc/netams.conf >/dev/null && echo -n ' NetAMS'
fi
fi
;;
stop)
killall netams
rmdir /var/run/netams
;;
*)
echo "$0 start | stop"
;;
esac