#!/bin/sh # $FreeBSD$ # 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=netmond_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" required_files="%%PREFIX%%/etc/${name}.conf" stop_postcmd="netmond_poststop" netmond_poststop() { /bin/rm -f ${pidfile} } load_rc_config $name : ${netmond_enable="NO"} run_rc_command "$1"