freebsd-ports/net/hsflowd/files/hsflowd.in
Ryan Steinmetz ba90b3874b New port: net/hsflowd:
The Host sFlow agent exports physical and virtual server performance
metrics using the sFlow protocol. The agent provides scalable,
multi-vendor, multi-OS performance monitoring with minimal impact on
the systems being monitored.

WWW: http://host-sflow.sourceforge.net/

Feature safe:	yes
2012-12-07 19:24:29 +00:00

30 lines
419 B
Bash

#!/bin/sh
#
# init(1) startup script for hsflowd daemon
#
# description: Host sFlow Daemon
# processname: hsflowd
# pidfile: /var/run/hsflowd.pid
#
. /etc/rc.subr
name=hsflowd
rcvar=`set_rcvar`
load_rc_config $name
hsflowd_enable=${hsflowd_enable:-"NO"}
stop_postcmd="hsflowd_postcmd"
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
hsflowd_postcmd() {
rm -f $pidfile
}
run_rc_command "$1"