Skip to content

Commit

Permalink
- add the munin-node rc script
Browse files Browse the repository at this point in the history
ok sthen@ (MAINTAINER) robert@
  • Loading branch information
jasperla committed Oct 28, 2010
1 parent 017a857 commit a7b4923
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
3 changes: 2 additions & 1 deletion net/munin/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
Expand Down
13 changes: 4 additions & 9 deletions net/munin/pkg/MESSAGE-main
Original file line number Diff line number Diff line change
@@ -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).
3 changes: 2 additions & 1 deletion net/munin/pkg/PLIST-main
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 changes: 12 additions & 0 deletions net/munin/pkg/munin-node.rc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a7b4923

Please sign in to comment.