summaryrefslogtreecommitdiff
path: root/manifests/client
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-05-22 20:49:52 +0200
committermh <mh@immerda.ch>2010-05-22 20:49:52 +0200
commit45c08416b675141f75a07bb0d918109fb0eb3581 (patch)
tree96b14ef8e3061555bb8856c48a609c66f91a0f8d /manifests/client
parent9ecc2313669ca80f30ae6a2b33308ffa062f9615 (diff)
check status over pidfile
Diffstat (limited to 'manifests/client')
-rw-r--r--manifests/client/openbsd.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/client/openbsd.pp b/manifests/client/openbsd.pp
index 31a9621..3c65fbd 100644
--- a/manifests/client/openbsd.pp
+++ b/manifests/client/openbsd.pp
@@ -45,8 +45,9 @@ class munin::client::openbsd inherits munin::client::base {
'4.3' => '/opt/munin/sbin/munin-node',
default => '/usr/local/sbin/munin-node'
},
- hasstatus => false,
- hasrestart => false,
+ status => 'test -e /var/run/munin/munin-node.pid && (ps ax | egrep -q "^$(cat /var/run/munin/munin-node.pid).*munin-node")',
+ hasstatus => true,
+ hasrestart => true,
require => [ File['/var/run/munin'], File['/var/log/munin'] ],
}
cron{'clean_munin_logfile':