blob: ba4de73334335506e767a9c00cd86a7984945e3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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"
|