Issue #1219 has been updated by Dan Bode. Status changed from Closed to Re-opened Affected version set to 0.25.1
I wanted to make a comment about this fix, in particular the decision not to use --add. In some situations where the service is not currently registered, the "add" command needs to be used together with "on" to properly set up both kill and start links. Example (from RH5) [r...@dansrh3 rc.d]# chkconfig --del httpd [r...@dansrh3 rc.d]# !find find * | grep httpd init.d/httpd [r...@dansrh3 rc.d]# chkconfig httpd on [r...@dansrh3 rc.d]# !find find * | grep httpd init.d/httpd rc2.d/S85httpd rc3.d/S85httpd rc4.d/S85httpd rc5.d/S85httpd [r...@dansrh3 rc.d]# Now we are in a broken state where there are no kill scripts set up. Should it be up to puppet to fix this? It seems that it should do both add and on (but not both off and del) ---------------------------------------- Bug #1219: Disabling a service on Red Hat systems should use 'chkconfig service off', not 'chkconfig --del service' http://projects.reductivelabs.com/issues/1219 Author: Ingemar Nilsson Status: Re-opened Priority: Normal Assigned to: Luke Kanies Category: service Target version: 0.24.5 Patch: Code Affected version: 0.25.1 Keywords: Branch: Currently, if I disable a service with enable => false, Puppet seems to run 'chkconfig --del servicename'. This is incorrect, as it removes the service from chkconfig management. The correct way is to use 'chkconfig servicename off'. One of the bad effects of the current behavior is that 'chkconfig --del servicename' removes all the /etc/rc*.d/K*servicename links, which are there to make sure that temporarily started services are allowed to gracefully shutdown on a system shutdown. They are preserved when 'chkconfig servicename off' is used. Obviously this also means that enable => true should result in a 'chkconfig servicename on' instead of the current 'chkconfig --add servicename'. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
