Commit 5e341d0f authored by Bernhard K. Weisshuhn's avatar Bernhard K. Weisshuhn Committed by Sean OMeara
Browse files

[COOK-4126] rsyslog cookbook fails restarts due to not using upstart


Signed-off-by: default avatarSean OMeara <someara@opscode.com>
parent 9e796ea5
......@@ -84,7 +84,14 @@ if platform_family?('omnios')
end
end
if node['platform'] == 'ubuntu' && node['platform_version'].to_f >= 12.04
service_provider = Chef::Provider::Service::Upstart
else
service_provider = nil
end
service node['rsyslog']['service_name'] do
supports :restart => true, :reload => true, :status => true
action [:enable, :start]
provider service_provider
end
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