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 <[email protected]>:
>
> 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 [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