projects
/
puppet_munin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecc231
)
check status over pidfile
author
mh
<mh@immerda.ch>
Sat, 22 May 2010 18:49:52 +0000
(20:49 +0200)
committer
mh
<mh@immerda.ch>
Sat, 22 May 2010 18:49:52 +0000
(20:49 +0200)
manifests/client/openbsd.pp
patch
|
blob
|
history
diff --git
a/manifests/client/openbsd.pp
b/manifests/client/openbsd.pp
index
31a9621
..
3c65fbd
100644
(file)
--- 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':