It's because 'service puppetd status' reports that puppetd is running while puppetd is running in test mode.
Trevor On Mon, Apr 6, 2009 at 10:40, Jim Pirzyk <pir...@freebsd.org> wrote: > I have this recipe setup to maintain puppetd: > > service { "puppet": > name => $operatingsystem ? { > Fedora => "puppet", > CentOS => "puppet", > Solaris => $kernelrelease ? { > "5.10" => "svc:/network/puppetd:default", > default => puppetd, > }, > default => "puppetd", > }, > ensure => running, > enable => true, > hasstatus => true, > require => [ File["puppet.conf"], Service[network] ], > subscribe => File["puppet.conf"], > } > > If I shut down puppetd on a host (using a Fedora Core 9 host for testing, > but has the same problem on Solaris, CentOS and FreeBSD, when I run 'puppetd > --test', it does not notice to restart puppet. > Running 'service puppet status' reports: > > puppetd is stopped > > I can add a 'pattern' parameter, but I though since hasstatus is set, that > 'service puppet status' should be called instead of doing 'ps -ef|grep > puppet'? > > I am running puppet 0.24.8 and facter 1.5.4 > > Ideas? > > - JimP > > --- @(#) $Id: dot.signature,v 1.15 2007/12/27 15:06:13 pirzyk Exp $ > __o ...@pirzyk.org ------------------------------------------- > _'\<,_ > (*)/ (*) I'd rather be out biking. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---