#!/bin/sh

# $FreeBSD: ports/net-mgmt/netmond/files/netmond.sh.in,v 1.3 2007/02/26 23:02:03 dougb Exp $

# PROVIDE: netmond
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these netmond_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/netmond
#

. /etc/rc.subr

name="netmond"
rcvar=`set_rcvar`

command="/usr/local/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/usr/local/etc/${name}.conf"

stop_postcmd="netmond_poststop"

netmond_poststop() {
	/bin/rm -f ${pidfile}
}

load_rc_config $name

: ${netmond_enable="NO"}

run_rc_command "$1"
