diff options
author | Nathan Williams <nath.e.will@gmail.com> | 2015-08-28 09:33:30 -0700 |
---|---|---|
committer | Nathan Williams <nath.e.will@gmail.com> | 2015-08-28 09:33:30 -0700 |
commit | 5a78ea32aaaee75265086c27d273f5c7dc1c111e (patch) | |
tree | 336cc73564e30fe39902663fe43662307fc90b94 /lib/chef/platform | |
parent | ed89cf566f0f4f6c33c9c0a77bb557f990607bf5 (diff) | |
download | chef-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.rb | 1 |
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") |