Browse files

syslog is managed via systemd on openSUSE 12.3

  • Loading branch information...
1 parent 7531ad0 commit 9f1a1bbb6ffa9456fcd32d570054ff6092d01397 @rhafer rhafer committed Mar 27, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 chef/cookbooks/logging/recipes/server.rb
View
8 chef/cookbooks/logging/recipes/server.rb
@@ -35,7 +35,13 @@
service "rsyslog" do
provider Chef::Provider::Service::Upstart if node[:platform] == "ubuntu"
- service_name "syslog" if node[:platform] == "suse"
+ if node[:platform] == "suse"
+ if node[:platform_version].to_f >= 12.3
+ provider Chef::Provider::Service::Systemd
+ else
+ service_name "syslog"
+ end
+ end
supports :restart => true, :status => true, :reload => true
running true
enabled true

0 comments on commit 9f1a1bb

Please sign in to comment.