Is the enable/disable feature available in lenny, and etch?  I didn't
think it was present before sid, and I don't know we want to break
older Debian platforms in newer puppet releases.  Perhaps we can probe
update-rc.d for a version number and use this mode when possible?

Regards,
    Daniel

On Wed, Jan 19, 2011 at 19:14, James Turnbull <[email protected]> wrote:
> From: martin f krafft <[email protected]>
>
>
> Signed-off-by: James Turnbull <[email protected]>
> ---
>  lib/puppet/provider/service/debian.rb |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/puppet/provider/service/debian.rb 
> b/lib/puppet/provider/service/debian.rb
> index 3d09e28..f3ab221 100755
> --- a/lib/puppet/provider/service/debian.rb
> +++ b/lib/puppet/provider/service/debian.rb
> @@ -23,7 +23,7 @@ Puppet::Type.type(:service).provide :debian, :parent => 
> :init do
>   # Remove the symlinks
>   def disable
>     update_rc "-f", @resource[:name], "remove"
> -    update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6", 
> "."
> +    update_rc @resource[:name], "disable"
>   end
>
>   def enabled?
> @@ -43,6 +43,6 @@ Puppet::Type.type(:service).provide :debian, :parent => 
> :init do
>
>   def enable
>     update_rc "-f", @resource[:name], "remove"
> -    update_rc @resource[:name], "defaults"
> +    update_rc @resource[:name], "enable"
>   end
>  end
> --
> 1.7.3.4
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" 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-dev?hl=en.
>
>



-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <[email protected]>
✆ Contact me via gtalk, email, or phone: +1 (503) 893-2285
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to