Craig White writes:
 > Seems that every cycle, puppet thinks that bind9 service is stopped and 
 > wants to restart...
 > 
 > info: Applying configuration version '1314822598'
 > notice: /Stage[main]/Bind::Service/Service[bind9]/ensure: ensure changed 
 > 'stopped' to 'running'
 > notice: Finished catalog run in 3.70 seconds
 > 
 > But it's running and from the logs, puppet doesn't appear to have any impact 
 > at all (bind9 was running, continues to run and is not restarted by the 
 > puppet cycle).
 > 
 > # /etc/init.d/bind9 status
 >  * bind9 is running

What's the exit status of "/etc/init.d/bind9 status"?  That's what
Puppet is checking if "hasstatus => true" is set for the service
(usually the default).  Give the command "echo $?" immediately after
running that; if the value is not 0, then the init script is kind of
broken and you should set "hasstatus => false" for the service.

 > # update-rc.d -n bind9 defaults
 >  System start/stop links for /etc/init.d/bind9 already exist.
 > 
 > # ps aux | grep `cat /var/run/named/named.pid`|grep -v grep
 > bind     21856  0.0  0.2 326644 39664 ?        Ssl  Aug26   0:17 
 > /usr/sbin/named -u bind
 > 
 > Extremely simple class...
 > class bind::service {
 >   service { "bind9":
 >     ensure => running,
 >     require => Class["bind::install"],
 >   }
 > }
 > 
 > ???
 > 
 > -- 
 > Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [email protected]
 > 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to