Issue #6954 has been reported by Jasper Poppe.
----------------------------------------
Bug #6954: Bug (and fix) for provider/service/debian.rb
https://projects.puppetlabs.com/issues/6954
Author: Jasper Poppe
Status: Unreviewed
Priority: High
Assignee:
Category:
Target version: 2.6.8
Affected Puppet version: 2.6.7
Keywords:
Branch:
With Debian Squeeze the following code fails, in other words the service won't
be disabled.
service {
'tomcat6':
enable => false,
require => Package[ 'tomcat6' ];
}
When I look in ./provider/service/debian.rb I see:
# Remove the symlinks
def disable
update_rc "-f", @resource[:name], "remove"
update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6", "."
end
The update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6", "."
enables the service again (At least on Debian Squeeze)
In my opinion it should be like this and works fine in Debian Squeeze (This
should also work on Lenny, Ubuntu, etc.):
# Remove the symlinks
def disable
update_rc "-f", @resource[:name], "remove"
invoke_rc @resource[:name], "stop"
end
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.