1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net-mgmt/netmond/files/netmond.sh.in
Doug Barton b4118877b1 Another round of the periodic sweep for removal of the
KEYWORD: FreeBSD scourge. We have ignored this keyword
for a long time now, so this is a non-functional change
(therefore no PORTREVISION bumps).

Insert a $FreeBSD tag where needed, and adjust a comment
in mail/milter-regex to match reality.
2007-02-26 23:02:04 +00:00

36 lines
529 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
#
. %%RC_SUBR%%
name="netmond"
rcvar=`set_rcvar`
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"