#!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { use lm_sensors } start() { ebegin "Starting collectd" /sbin/start-stop-daemon --quiet --start --pidfile /var/run/collectd.pid --exec /usr/sbin/collectd -- -d ${DATA_BASEDIR} $(for p in ${PING_HOSTS:-}; do echo -p $p ; done) eend $? } stop() { ebegin "Stopping collectd" /sbin/start-stop-daemon --quiet --stop --pidfile /var/run/collectd.pid eend $? }