Issue #10980 has been updated by Greg Poirier.

File puppet-10980.patch added

This is effecting a couple of the packages we deploy. We're on the 2.7.x 
branch. I wouldn't mind fixing the bug, but I'm not entirely sure where to 
start. I was looking at provider/service/redhat.rb, but stopped at line 9: 
commands :chkconfig => "/sbin/chkconfig".

As of RHEL 6.3, chkconfig still isn't creating the appropriate K scripts for 
init scripts of the format "# chkconfig: <start> <stop>", but running chkconfig 
--levels 016 <service> off does create K scripts. We are going about this with 
a defined type at the moment. Since RedHat will probably never, ever change 
chkconfig -- would it behoove puppet to adapt?

Would something like the attached patch be okay? I haven't tested it or 
anything, but I wanted to make sure that the basic principle is okay. If 
redhat, also manually turn the service off at run-levels 016.
----------------------------------------
Bug #10980: Service provider in RedHat will not create K?? stop scripts
https://projects.puppetlabs.com/issues/10980#change-83434

Author: Andoni Auzmendi
Status: Accepted
Priority: Normal
Assignee: 
Category: service
Target version: 
Affected Puppet version: 2.7.6
Keywords: service redhat linux enable
Branch: 


When a service is set to be enabled the provider/service/redhat.rb provider 
will run "/sbin/chkconfig $name on" which will only create the links for 
starting the service but will not for stopping it. The correct command is 
"/sbin/chkconfig --add $name".

This is important for those services that require stopping cleanly before other 
services.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to