summaryrefslogtreecommitdiff
path: root/lib/chef/platform
diff options
context:
space:
mode:
authorNathan Williams <nath.e.will@gmail.com>2015-08-28 09:33:30 -0700
committerNathan Williams <nath.e.will@gmail.com>2015-08-28 09:33:30 -0700
commit5a78ea32aaaee75265086c27d273f5c7dc1c111e (patch)
tree336cc73564e30fe39902663fe43662307fc90b94 /lib/chef/platform
parented89cf566f0f4f6c33c9c0a77bb557f990607bf5 (diff)
downloadchef-5a78ea32aaaee75265086c27d273f5c7dc1c111e.tar.gz
include systemd in configs if init.d on systemd-based system
Diffstat (limited to 'lib/chef/platform')
-rw-r--r--lib/chef/platform/service_helpers.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/platform/service_helpers.rb b/lib/chef/platform/service_helpers.rb
index ca0ed063da..f7680fa8c5 100644
--- a/lib/chef/platform/service_helpers.rb
+++ b/lib/chef/platform/service_helpers.rb
@@ -68,6 +68,7 @@ class Chef
if ::File.exist?("/etc/init.d/#{service_name}")
configs << :initd
+ configs << :systemd if systemd_is_init?
end
if ::File.exist?("/etc/init/#{service_name}.conf")