Commit 99115ecf authored by Joshua Timberman's avatar Joshua Timberman
Browse files

Merge pull request #18 from tas50/COOK-2540

Cook 2540: Stop syslog when on RHEL versions below 6
parents 0df36953 b01c4e1a
#
# Cookbook Name:: rsyslog
# Attributes:: rsyslog
# Attributes:: default
#
# Copyright 2009, Opscode, Inc.
#
......
......@@ -45,6 +45,13 @@ template "/etc/rsyslog.d/50-default.conf" do
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end
# 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]
end
end
service node['rsyslog']['service_name'] do
supports :restart => true, :reload => true, :status => true
action [:enable, :start]
......
Markdown is supported
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