Lisa
2009-Oct-05 16:17 UTC
[Puppet Users] Service started with "onestart" instead of "start"
Hello all, I''m using Puppet to ensure a service is running. After stopping the service and running "puppetd -v -o --test", I sometimes (not always) get an error output like this one: "Could not start Service[myService]: Execution of ''/etc/init.d/ myService onestart" I wonder why it calls "onestart" instead of "start". Then I run "puppetd -v -o --debug" and get the following outputs: - when it runs ok: Service[myService](provider=debian): Executing ''ps -ef'' Puppet::Type::Service::ProviderDebian: Executing ''/usr/sbin/update- rc.d -n -f myService remove Service[myService](provider=debian): Executing ''/etc/init.d/myService start'' Puppet::Type::Service::ProviderDebian: Executing ''/usr/sbin/update- rc.d -n -f myService remove - when it runs with error: Service[myService](provider=freebsd): Executing ''ps -ef Service[myService](provider=freebsd): Executing ''/etc/init.d/myService onestart'' Do you think the change of provider can explain the error ? Why can the provider change ? (I run the command in the same server). Thank you. Best wishes. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Julian Simpson
2009-Oct-05 20:06 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
I think older versions of puppet detect two providers for Service types; puppet and BSD. It always picks BSD first (''onestart'' is a BSD command). You can override the provider by adding ''provider => debian '' to the declaration of the service. You can also override this globally, IIRC. J. 2009/10/5 Lisa <lisa_elisafr@yahoo.fr>:> > Hello all, > > I''m using Puppet to ensure a service is running. After stopping the > service and running "puppetd -v -o --test", I sometimes (not always) > get an error output like this one: > > "Could not start Service[myService]: Execution of ''/etc/init.d/ > myService onestart" > > I wonder why it calls "onestart" instead of "start". > > Then I run "puppetd -v -o --debug" and get the following outputs: > - when it runs ok: > > Service[myService](provider=debian): Executing ''ps -ef'' > Puppet::Type::Service::ProviderDebian: Executing ''/usr/sbin/update- > rc.d -n -f myService remove > Service[myService](provider=debian): Executing ''/etc/init.d/myService > start'' > Puppet::Type::Service::ProviderDebian: Executing ''/usr/sbin/update- > rc.d -n -f myService remove > > - when it runs with error: > > Service[myService](provider=freebsd): Executing ''ps -ef > Service[myService](provider=freebsd): Executing ''/etc/init.d/myService > onestart'' > > Do you think the change of provider can explain the error ? Why can > the provider change ? (I run the command in the same server). > > Thank you. > Best wishes. > > > > >-- Julian Simpson Software Build and Deployment http://www.build-doctor.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Oct-05 20:41 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hi> I think older versions of puppet detect two providers for Service > types; puppet and BSD. It always picks BSD first (''onestart'' is a BSD > command). You can override the provider by adding ''provider => debian > '' to the declaration of the service.which version of puppetd and facter are you running?> You can also override this globally, IIRC.place Service{ provider => debian } ontop of your manifests. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lisa
2009-Oct-06 08:54 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hello, Thank you for your replies. I override the provider and it runs ok everytime. The version of puppetd I use is 0.24.5 and the version of facter is 1.5.1. Best wishes. On 5 oct, 22:41, Peter Meier <peter.me...@immerda.ch> wrote:> Hi > > > I think older versions of puppet detect two providers for Service > > types; puppet and BSD. It always picks BSD first (''onestart'' is a BSD > > command). You can override the provider by adding ''provider => debian > > '' to the declaration of the service. > > which version of puppetd and facter are you running? > > > You can also override this globally, IIRC. > > place > > Service{ > provider => debian > > } > > ontop of your manifests. > > cheers pete--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Oct-06 11:54 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hi> The version of puppetd I use is 0.24.5 and the version of facter is > 1.5.1.and which distro are you using? puppet should automatically take the best suited provider to manage packages. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lisa
2009-Oct-06 12:22 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hello, I use Ubuntu 7.10 inside Vmware. When I run "puppetd -v -o --test", I also get the warning message: "warning: Found multiple default providers for service: debian, freebsd; using freebsd" Best wishes. On 6 oct, 13:54, Peter Meier <peter.me...@immerda.ch> wrote:> Hi > > > The version of puppetd I use is 0.24.5 and the version of facter is > > 1.5.1. > > and which distro are you using? puppet should automatically take the > best suited provider to manage packages. > > cheers pete--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Oct-06 12:42 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hi> I use Ubuntu 7.10 inside Vmware. > When I run "puppetd -v -o --test", I also get the warning message: > "warning: Found multiple default providers for service: debian, > freebsd; using freebsd"hu, quite and old version, and this warning is definately the problem. can you upgrade to latest facter and puppet and check wether it is still a problem? cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lisa
2009-Oct-08 21:38 UTC
[Puppet Users] Re: Service started with "onestart" instead of "start"
Hello, I am not sure if I can upgrade to latest facter and puppet. I need to ask my system administrator. Best wishes. On Oct 6, 2:42 pm, Peter Meier <peter.me...@immerda.ch> wrote:> Hi > > > I use Ubuntu 7.10 inside Vmware. > > When I run "puppetd -v -o --test", I also get the warning message: > > "warning: Found multiple default providers for service: debian, > > freebsd; using freebsd" > > hu, quite and old version, and this warning is definately the problem. > can you upgrade to latest facter and puppet and check wether it is > still a problem? > > cheers pete--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---