blob: c07f77d2cca9aae397df1a7d74922b5a52ce4ae9 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mbmon
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable the mbmon daemon:
#
# mbmon_enable="YES"
#
# See mbmon(1) for mbmon_flags
# Set mbmon_port to the TCP port to listen to, default is 12999
. %%RC_SUBR%%
name="mbmon"
rcvar=`set_rcvar`
# read configuration and set defaults
load_rc_config "$name"
: ${mbmon_enable="NO"}
: ${mbmon_flags=""}
: ${mbmon_port="12999"}
command="%%PREFIX%%/bin/${name}"
command_args="-P ${mbmon_port}"
run_rc_command "$1"
|