mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
ba90b3874b
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
30 lines
419 B
Bash
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"
|