#!/bin/sh
#
# PROVIDE: sflowtool
# REQUIRE: DAEMON

.  %%RC_SUBR%%

name="sflowtool"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/sflowtool"

load_rc_config $name
# Set defaults
: ${sflowtool_enable="NO"}
: ${sflowtool_flags=""}
: ${sflowtool_pidfile="/var/run/${name}.pid"}

start_cmd="/usr/sbin/daemon -f -p ${sflowtool_pidfile} ${command} ${sflowtool_flags}"
start_postcmd="echo Starting ${name}."

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1