mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
- Upgrade FreeBSD4 support to rcNG - Use INSTALL_SCRIPT to install the start-stop script - Correct rcNG version of pkg-message, adding PREFIX - Use SUB_FILES and SUB_LIST - Add log rotation support PR: ports/77721 Submitted by: maintainer
28 lines
715 B
Bash
28 lines
715 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
# PROVIDE: munin-node
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: cron
|
|
# KEYWORD: FreeBSD
|
|
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="munin_node"
|
|
rcvar=`set_rcvar`
|
|
|
|
[ -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"
|
|
pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_node_config`
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|