freebsd-ports/sysutils/mbmon/files/mbmon.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

32 lines
571 B
Bash

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