aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netmond/files/netmond.sh.in
blob: 977c76b6f5e1d1d3c2f58d62fff9c82d2deff9f2 (plain) (blame)
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: FreeBSD 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"