Issue #10980 has been updated by Jos van der Meer.
Hi Greg. The correct way to add a service in the runlevels specified in the
init script is : "chkconfig --add servicename". That way a Start script will be
run in the appropriate runlevels (e.g. 3 4 5) and a Kill script for the other
runlevels.
def enable
output = chkconfig("--add", @resource[:name])
To remove a service:
def disable
output = chkconfig("--del", @resource[:name])
----------------------------------------
Bug #10980: Service provider in RedHat will not create K?? stop scripts
https://projects.puppetlabs.com/issues/10980#change-83470
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.