Skip to content

Commit

Permalink
gmetad doesn't have a good status command on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
kitchen committed Nov 20, 2013
1 parent a9c4271 commit b70a999
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions manifests/gmetad/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@

class ganglia::gmetad::service inherits ganglia::gmetad {

if ($gmetad_status_command) {
$hasstatus = false
} else {
$hasstatus = true
}

service { $gmetad_service_name:
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
ensure => running,
hasstatus => $hasstatus,
hasrestart => true,
enable => true,
status => $gmetad_status_command,
}
}
3 changes: 1 addition & 2 deletions manifests/gmond/service.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# == Class: ganglia::gmond::service
#
# enables the gmond service
# # enables the gmond service
#
# === Authors
#
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
$gmond_status_command = 'pgrep -u ganglia -f /usr/sbin/gmond'

$gmetad_service_config = '/etc/ganglia/gmetad.conf'
$gmetad_status_command = 'pgrep -u nobody -f /usr/sbin/gmetad'
# it's the same file as el6 with only the default user comment changed
$gmetad_service_erb = 'ganglia/gmetad.conf.el6.erb'
}
Expand Down

0 comments on commit b70a999

Please sign in to comment.