freebsd-ports/net-mgmt/collectd5/files/collectd.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

26 lines
522 B
Bash

#!/bin/sh
# PROVIDE: collectd
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# collectd_enable (bool): Set to NO by default.
# Set it to YES to enable collectd.
# collectd_flags (string): Set to "" by default.
# Additional flags to collectd, see manual page.
#
. /etc/rc.subr
name="collectd"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
load_rc_config $name
: ${collectd_enable="NO"}
run_rc_command "$1"