pkgsrc/sysutils/collectd/files/collectd.sh
fhajny d0411448e0 Import collectd-5.4.1 as sysutils/collectd (+ plugins), based on wip/collectd5.
collectd is a daemon which collects system performance statistics periodically
and provides mechanisms to store the values in a variety of ways, for example
in RRD-files.
2014-02-17 11:21:54 +00:00

26 lines
481 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: collectd.sh,v 1.1 2014/02/17 11:21:55 fhajny Exp $
#
# PROVIDE: collectd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# You will need to set some variables in /etc/rc.conf to start collectd:
#
# collectd=YES
#
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="collectd"
rcvar=${name}
command=@PREFIX@/sbin/collectd
pidfile="@VARBASE@/run/collectd.pid"
required_files=@PKG_SYSCONFDIR@/collectd.conf
load_rc_config ${name}
run_rc_command "$1"