Skip to content

Commit

Permalink
changing init script for apache to "service httpd"
Browse files Browse the repository at this point in the history
This is necessary so that the logrotate config for httpd
works in both rhel and amazon linux
  • Loading branch information
jarv-aws committed Jun 23, 2015
1 parent 8166d05 commit 8208118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache2/attributes/apache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
default[:apache][:group] = 'apache'
default[:apache][:binary] = '/usr/sbin/httpd'
default[:apache][:icondir] = '/var/www/icons/'
default[:apache][:init_script] = '/etc/init.d/httpd'
default[:apache][:init_script] = "service httpd"
if platform?("redhat") && Chef::VersionConstraint.new("~> 7.0").include?(node["platform_version"])
default[:apache][:version] = "2.4"
else
Expand Down

0 comments on commit 8208118

Please sign in to comment.