Scott Smith
2008-Jul-08 19:47 UTC
[Puppet Users] autofs service status weirdness (centos 5)
Is anyone else getting a weird message from puppetd when managing autofs as a Service? my manifest uses: << service { autofs: ensure => running, enable => true, require => Package[autofs] } >> however puppetd prints out: << Jul 8 12:35:32 host puppetd[25862]: (//Node[basenode]/autofs/Service[autofs]/ensure) change from stopped to running failed: Could not start Service[autofs]: Execution of ''/etc/init.d/autofs start'' returned 256: at /etc/puppet/modules/autofs/manifests/init.pp:13 >> yet when i check the status from a prompt: << [root@host ~]# service autofs status automount (pid 2926) is running... [root@host ~]# echo $? 0 >> If I add "hasstatus => true" to the Service, it doesn''t print the error. But the service doesn''t reload when it gets a notify from my defines! So weird. *Every* one of my other Services works fine with the exact same syntax as the one shown above, so I can''t imagine what would cause this. I''m running 0.24.4, but it''s been an issue since 0.24.1. -scott --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Smith
2008-Jul-08 20:04 UTC
[Puppet Users] Re: autofs service status weirdness (centos 5)
Scott Smith wrote:> Is anyone else getting a weird message from puppetd when managing autofs > as a Service?Never mind. I keep thinking it will use the init script status by default, if it can. Guess that''s what I get for trying to fix it at 3am. -scott --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Smith wrote:> Scott Smith wrote: > >> Is anyone else getting a weird message from puppetd when managing autofs >> as a Service? >> > > Never mind. I keep thinking it will use the init script status by > default, if it can. Guess that''s what I get for trying to fix it at 3am. >Unless you explicitly set ''hasstatus'', it will assume that the service is broken and try and do ps -ef|grep ${name} Regards, AJ --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Massimo Mongardini
2008-Jul-10 16:05 UTC
[Puppet Users] Re: autofs service status weirdness (centos 5)
AJ wrote:> Scott Smith wrote: > >> Scott Smith wrote: >> >> >>> Is anyone else getting a weird message from puppetd when managing autofs >>> as a Service? >>> >>> >> Never mind. I keep thinking it will use the init script status by >> default, if it can. Guess that''s what I get for trying to fix it at 3am. >> >> > Unless you explicitly set ''hasstatus'', it will assume that the service > is broken and try and do ps -ef|grep ${name} > > Regards, > > AJ > > > >you could use: service { autofs: ensure => true, pattern => "automount", restart => "/etc/init.d/autofs reload", require => Package[autofs], } to match automount vs. autofs on the ps test M. -- Massimo Mongardini ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ echo ''Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!'' | perl -pe ''s/(.)/chr(ord($1)-1)/ge'' ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ http://massimo.mongardini.it http://www.getthefacts.it http://www.mongardini.it/pizza-howto ~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---