#!/bin/sh
# Mark Kamichoff <prox@prolixium.com>
# mrtg-rmt init script - Version 1.0

case "$1" in
start)
	/usr/local/sbin/mrtg-rmt -d
	echo 'Starting mrtg-rmt.'
	;;
stop)
	pkill -f '/usr/bin/perl -w /usr/local/sbin/mrtg-rmt'
	echo 'Stopping mrtg-rmt.'
	;;
restart)
	echo 'Stopping mrtg-rmt.'
	pkill -f '/usr/bin/perl -w /usr/local/sbin/mrtg-rmt'
	echo 'Starting mrtg-rmt.'
	/usr/local/sbin/mrtg-rmt -d
	;;
*)
	echo "Usage: ${0##*/}: { start | stop | restart }" >&2
	exit 64
	;;
esac
