summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-29 18:04:07 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-29 18:04:07 +0000
commitbeb4abbf90070002c05874b9d49388e5cea2befb (patch)
tree49e3658a1b822767b530070eaa8f6e641a36c5a2 /net-analyzer/munin/files
parentVersion bump. Fix jimtcl dependency on live ebuild (diff)
downloadhistorical-beb4abbf90070002c05874b9d49388e5cea2befb.tar.gz
historical-beb4abbf90070002c05874b9d49388e5cea2befb.tar.bz2
historical-beb4abbf90070002c05874b9d49388e5cea2befb.zip
Add a reload command to munin-node init script; make virtual/awk dependency unconditional (used by the init scripts), and only depend on freeipmi at runtime.
Package-Manager: portage-2.2.0_alpha123/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/munin/files')
-rw-r--r--net-analyzer/munin/files/munin-node_init.d_2.0.59
1 files changed, 8 insertions, 1 deletions
diff --git a/net-analyzer/munin/files/munin-node_init.d_2.0.5 b/net-analyzer/munin/files/munin-node_init.d_2.0.5
index 657ae6640a3a..26922826bd53 100644
--- a/net-analyzer/munin/files/munin-node_init.d_2.0.5
+++ b/net-analyzer/munin/files/munin-node_init.d_2.0.5
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v 1.2 2012/08/24 22:13:22 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v 1.3 2012/08/29 18:04:07 flameeyes Exp $
get_munin_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
@@ -13,6 +13,7 @@ command=/usr/sbin/munin-node
command_args="--config ${CFGFILE}"
pidfile=$(get_munin_config pid_file)
start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0}"
+extra_started_commands="reload"
depend() {
config "$CFGFILE"
@@ -28,4 +29,10 @@ start_pre() {
checkpath -d $(dirname ${pidfile})
}
+reload() {
+ ebegin "Reloading ${SERVICE}"
+ kill -HUP `cat ${pidfile}"`
+ eend $?
+}
+
# vim: filetype=gentoo-init-d: