freebsd-ports/net-mgmt/netmond/files/netmond.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

35 lines
533 B
Bash

#!/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"