diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-03-16 06:29:51 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-03-16 06:29:51 +0000 |
commit | 6e81044f3310cd0605489537b1b6b1bf43bbafdd (patch) | |
tree | cf6bfcc54034908746cbf7b286da7336a68484ba /net-analyzer/munin/files | |
parent | Add back jruby since it breaks the dependency chain for Rails otherwise. (diff) | |
download | gentoo-2-6e81044f3310cd0605489537b1b6b1bf43bbafdd.tar.gz gentoo-2-6e81044f3310cd0605489537b1b6b1bf43bbafdd.tar.bz2 gentoo-2-6e81044f3310cd0605489537b1b6b1bf43bbafdd.zip |
Bug #304447: ps is at /bin/ps in Gentoo. Bug #340301: optional memcache check deps. Bug #358605: detect pidfile location from munin-node config file.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/munin/files')
-rw-r--r-- | net-analyzer/munin/files/munin-node_conf.d_1.4.5-r2 | 10 | ||||
-rw-r--r-- | net-analyzer/munin/files/munin-node_init.d_1.4.5-r2 | 27 |
2 files changed, 37 insertions, 0 deletions
diff --git a/net-analyzer/munin/files/munin-node_conf.d_1.4.5-r2 b/net-analyzer/munin/files/munin-node_conf.d_1.4.5-r2 new file mode 100644 index 000000000000..648c8353a869 --- /dev/null +++ b/net-analyzer/munin/files/munin-node_conf.d_1.4.5-r2 @@ -0,0 +1,10 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_conf.d_1.4.5-r2,v 1.1 2011/03/16 06:29:51 robbat2 Exp $ + +# Set to the nice level for daemon +NICE_LEVEL=1 +PIDFILE=$(/usr/bin/awk '/^pid_file/{s=$2}END{print s}' /etc/munin/munin-node.conf) +echo munin pid $PIDFILE + +# vim: filetype=gentoo-conf-d: diff --git a/net-analyzer/munin/files/munin-node_init.d_1.4.5-r2 b/net-analyzer/munin/files/munin-node_init.d_1.4.5-r2 new file mode 100644 index 000000000000..359470171fbf --- /dev/null +++ b/net-analyzer/munin/files/munin-node_init.d_1.4.5-r2 @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2011 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_1.4.5-r2,v 1.1 2011/03/16 06:29:51 robbat2 Exp $ + +[ -z "${NAME}" ] && NAME="munin-node" +[ -z "${PIDFILE}" ] && PIDFILE=/var/run/munin/$NAME.pid + +depend() { + need net + before cron +} + +start() { + NICE_LEVEL="${NICE_LEVEL:-0}" + ebegin "Starting $NAME" + start-stop-daemon --quiet --nicelevel $NICE_LEVEL --start --pidfile $PIDFILE --exec /usr/sbin/$NAME + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --quiet --stop --pidfile $PIDFILE + eend $? +} + +# vim: filetype=gentoo-init-d: |