You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/munin/files/munin-node_init.d_2.0.19

27 lines
598 B

#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
get_munin_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
}
: ${CFGFILE:=/etc/munin/munin-node.conf}
command=/usr/sbin/munin-node
command_args="--config ${CFGFILE}"
pidfile=$(get_munin_config pid_file)
start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0} --wait 1500"
extra_started_commands="reload"
depend() {
config "$CFGFILE"
before cron
[ "$(get_munin_config log_file)" = "Sys::Syslog" ] && \
use logger
}
# vim: filetype=gentoo-init-d: