1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/net/sflowtool/files/sflowtool.in
Frank J. Laszlo 4df8e791b4 - Update to version 3.10
- Add startup script
- Update maintainer email

PR:		ports/110939
Submitted by:	Gregory Edigarov <greg@bestnet.kharkov.ua> (maintainer)
2007-03-28 02:44:47 +00:00

22 lines
419 B
Bash

#!/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"