ports/net-mgmt/macroscope/files/macroscope.in
Martin Wilke 042855d8b2 Macroscope is a squid, sendmail, courier, bpft log files analizer,
IP sniffer and HTML report generator.
Features:
  squid log file parser.
  sendmail log file parser.
  courier log file parser.
  bpft(ports/net-mgmt/bpft) log file parser.
  Database backends support: MySQL, Firebird.
  IP sniffer via pcap library (ports/net/libpcap).
  Direct commit changes to database in realtime (no log files).
  Traffic static HTML reports generating by date periods.
  Traffic dynamic HTML reports generating via CGI (Web interface).
  Multithreading architecture.
  Portable: BSD os'es and Windows NT family supported, but tested at this time
            only under FreeBSD 5.x 6.x amd64 i386 and Windows 2000 XP 2003.

WWW: http://developer.berlios.de/projects/macroscope/

- Dukashvili Guram
white_raven@users.berlios.de

PR:		ports/112653
Submitted by:	Dukashvili Guram <white_raven at users.berlios.de>
2007-06-14 15:32:40 +00:00

52 lines
869 B
Bash

#!/bin/sh
#
# macroscope - start Macroscope daemon
#
# $FreeBSD$
#
# PROVIDE: macroscope
# REQUIRE: DAEMON
# KEYWORD: shutdown
# -----------------------------------------------------------------------------
# macroscope_enable="NO" # set to YES to enable macroscope
#
# # optional:
# macroscope_flags="" # additional command line arguments
#
. %%RC_SUBR%%
name="macroscope"
rcvar=$(set_rcvar)
prefix="%%PREFIX%%"
start_precmd()
{
return 0
}
stop_postcmd()
{
rm -f "$pidfile" || warn "Could not remove $pidfile."
}
# pidfile
eval pidfile=\$${name}_pidfile
pidfile=${pidfile:-/var/run/${name}.pid}
echo ${pidfile}
# command and arguments
command="%%PREFIX%%/sbin/${name}"
# run this first
start_precmd="start_precmd"
# and this last
stop_postcmd="stop_postcmd"
load_rc_config ${name}
command_args="--sniffer --daemon --pid ${pidfile}"
run_rc_command "$1"