diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-23 08:52:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-23 08:52:39 +0100 |
commit | c9aaa2ff911ee95adca22bcd9264e8ecfa3d5149 (patch) | |
tree | 32153e53b9929840fafd6a0bf95110df4c2885df /net-analyzer/munin/files | |
parent | bc8e1f28a81cb6ef9bc3fd1103842690c4320ce4 (diff) |
gentoo auto-resync : 23:07:2023 - 08:52:38
Diffstat (limited to 'net-analyzer/munin/files')
-rw-r--r-- | net-analyzer/munin/files/munin-node_init.d_2.0.73 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-analyzer/munin/files/munin-node_init.d_2.0.73 b/net-analyzer/munin/files/munin-node_init.d_2.0.73 new file mode 100644 index 000000000000..ef9ff691adeb --- /dev/null +++ b/net-analyzer/munin/files/munin-node_init.d_2.0.73 @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# 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 + need hostname net + + [ "$(get_munin_config log_file)" = "Sys::Syslog" ] && \ + use logger +} + +# vim: filetype=gentoo-init-d: |