- add the munin-node rc script
ok sthen@ (MAINTAINER) robert@
This commit is contained in:
parent
a7c4f8cc57
commit
0ae62a6a6a
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2010/10/23 15:52:22 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2010/10/28 11:01:47 jasper Exp $
|
||||
|
||||
COMMENT-main = flexible network host monitoring, client
|
||||
COMMENT-server =flexible network host monitoring, server
|
||||
@ -7,6 +7,7 @@ V = 1.4.5
|
||||
DISTNAME = munin-$V
|
||||
PKGNAME-main = munin-node-$V
|
||||
PKGNAME-server =munin-server-$V
|
||||
REVISION-main = 0
|
||||
CATEGORIES = net
|
||||
|
||||
HOMEPAGE = http://munin-monitoring.org/
|
||||
|
@ -1,12 +1,7 @@
|
||||
Install p5-Net-SNMP to use the optional SNMP-based monitors.
|
||||
|
||||
To have munin-node start at boot time, you should create symlinks
|
||||
in ${SYSCONFDIR}/munin/plugins as described in the manual (manually or
|
||||
Before starting munin-node, you should create symlinks in
|
||||
${SYSCONFDIR}/munin/plugins as described in the manual (manually or
|
||||
using the output from munin-node-configure --shell), adapt
|
||||
${SYSCONFDIR}/munin/munin-node.conf if necessary (e.g. if a remote server
|
||||
will query this node), and insert the following into /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/munin-node ]; then
|
||||
install -d -o _munin /var/run/munin
|
||||
echo -n ' munin-node'; ${PREFIX}/sbin/munin-node
|
||||
fi
|
||||
${SYSCONFDIR}/munin/munin-node.conf if necessary (e.g. if a remote
|
||||
server will query this node).
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.3 2010/10/23 15:52:23 sthen Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.4 2010/10/28 11:01:47 jasper Exp $
|
||||
@newgroup _munin:644
|
||||
@newgroup _munin-plugin:645
|
||||
@newuser _munin:644:_munin:daemon:munin user:/nonexistent:/sbin/nologin
|
||||
@ -310,3 +310,4 @@ share/examples/munin/plugins/
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/munin/plugins/
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/munin/plugin-conf.d/
|
||||
@extraunexec rm -rf /var/log/munin
|
||||
@rcscript ${RCDIR}/munin-node
|
||||
|
12
net/munin/pkg/munin-node.rc
Normal file
12
net/munin/pkg/munin-node.rc
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/munin-node"
|
||||
pexp="perl: ${daemon}"
|
||||
|
||||
rc_pre() {
|
||||
install -d -o _munin /var/run/munin
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user