Issue #10980 has been updated by Michael Stahnke.

Status changed from Unreviewed to Accepted
Target version set to 2.7.x

Confirmed. 


    [root@centos5-64 init.d]# chkconfig --del httpd
    [root@centos5-64 init.d]# find /etc/rc.d/ | grep httpd
    /etc/rc.d/init.d/httpd
    [root@centos5-64 init.d]# cat test.pp 
    service { "httpd":
    enable => true
    }
    [root@centos5-64 init.d]# puppet apply --verbose test.pp 
    /usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:48: warning: parenthesize 
argument(s) for future version
    info: Applying configuration version '1321582482'
    notice: /Stage[main]//Service[httpd]/enable: enable changed 'false' to 
'true'
    notice: Finished catalog run in 0.14 seconds
    [root@centos5-64 init.d]# find /etc/rc.d/ | grep httpd
    /etc/rc.d/rc5.d/S85httpd
    /etc/rc.d/rc2.d/S85httpd
    /etc/rc.d/rc3.d/S85httpd
    /etc/rc.d/init.d/httpd
    /etc/rc.d/rc4.d/S85httpd
    [root@centos5-64 init.d]# 


We should be running chkconfig --add $service then chkconfig on $service

----------------------------------------
Bug #10980: Service provider in RedHat will not create K?? stop scripts
https://projects.puppetlabs.com/issues/10980

Author: Andoni Auzmendi
Status: Accepted
Priority: Normal
Assignee: 
Category: service
Target version: 2.7.x
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 post to this group, send email to puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to