Skip to content

Commit 775d0dc

Browse files
author
Eric Sorenson
committed
Revert "(#15797) Change the argument to chkconfig from 'on' to 'reset'"
This reverts commit d2012ae. The chkconfig line can use `-` to indicate the service should not be enabled by default. In this case, `reset` disables all runlevels, which is the opposite of what `enable=>true` should do. The original bug referenced in #15797, #528, was also reverted for (presumably) the same reason: 41e1285
1 parent 0b22ec1 commit 775d0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/service/redhat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def enabled?
4848
# Don't support them specifying runlevels; always use the runlevels
4949
# in the init scripts.
5050
def enable
51-
output = chkconfig(@resource[:name], :reset)
51+
output = chkconfig(@resource[:name], :on)
5252
rescue Puppet::ExecutionFailure => detail
5353
raise Puppet::Error, "Could not enable #{self.name}: #{detail}"
5454
end

0 commit comments

Comments
 (0)