Commit 37771edf authored by Tim Smith's avatar Tim Smith
Browse files

Stop syslog when on RHEL versions below 6

Otherwise rsyslog will fail to start up
parent c9ecbaed
......@@ -53,6 +53,13 @@ template "/etc/rsyslog.d/50-default.conf" do
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
# syslog needs to be stopped before rsyslog can be started on RHEL versions before 6.0
if platform_family?('rhel') && node['platform_version'].to_i < 6
service "syslog" do
action [:stop, :disable]
service node['rsyslog']['service_name'] do
supports :restart => true, :reload => true, :status => true
action [:enable, :start]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment