Skip to content

Commit

Permalink
Merge pull request #335 from joerocklin/centos7_fixes
Browse files Browse the repository at this point in the history
Use systemd on RHEL/CentOS 7 (but not Amazon)
  • Loading branch information
svanzoest committed Mar 26, 2016
2 parents 7517f03 + f3916f1 commit 400957d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@
service_name apache_service_name
case node['platform_family']
when 'rhel'
restart_command "/sbin/service #{apache_service_name} restart && sleep 1" if node['apache']['version'] == '2.2'
reload_command "/sbin/service #{apache_service_name} graceful"
if node['platform_version'].to_f < 7.0
restart_command "/sbin/service #{apache_service_name} restart && sleep 1" if node['apache']['version'] == '2.2'
reload_command "/sbin/service #{apache_service_name} graceful"
end
when 'debian'
provider Chef::Provider::Service::Debian
when 'arch'
Expand Down

0 comments on commit 400957d

Please sign in to comment.