mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
336ae31855
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>
27 lines
426 B
Bash
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
|
|
|
|
|
|
|