#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 start() { ebegin "Starting Hotsanic" /usr/share/hotsanic/rrdtimer.pl Dp eend $? sleep 1 } stop() { ebegin "Stopping Hotsanic" PID=`cat /var/run/rrdtimer.pid` for nn in $PID; do kill $nn; done; /usr/share/hotsanic/rrdtimer.pl eend $? } restart() { svc_stop sleep 2 svc_start }