freebsd-ports/sysutils/munin-node/files/munin-node.in
Florian Smeets 7e06c048aa - update to 2.0.9
- use correct pidfile for munin-sched rc script [1]
- munin-cgi-graph requires FCGI [2]

Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr> [1]
		Sergey V. Dyatko <sergey.dyatko@gmail.com> [2]
Feature safe:	yes
2012-12-06 14:27:28 +00:00

28 lines
734 B
Bash

#!/bin/sh
#
# PROVIDE: munin-node
# REQUIRE: DAEMON
# BEFORE: cron
#
# Add the following lines to /etc/rc.conf to enable munin-node:
# munin_node_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable munin-node
# munin_node_config (path): Set to "%%PREFIX%%/etc/munin/munin-node.conf" by default.
#
. /etc/rc.subr
name="munin_node"
rcvar=munin_node_enable
[ -z "$munin_node_enable" ] && munin_node_enable="NO"
[ -z "$munin_node_config" ] && munin_node_config="%%PREFIX%%/etc/munin/munin-node.conf"
command="%%PREFIX%%/sbin/munin-node"
command_interpreter="%%PERL%%"
pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_node_config`
load_rc_config $name
run_rc_command "$1"