diff options
author | Nathan Williams <nath.e.will@gmail.com> | 2015-10-23 23:20:43 -0700 |
---|---|---|
committer | Nathan Williams <nath.e.will@gmail.com> | 2015-10-23 23:20:43 -0700 |
commit | acf5c365ca3e5c221af386a5ffa7bb1c84a50c31 (patch) | |
tree | 06ff230d7a4c35dbf602c41cb3947e1e1065f659 /lib/chef/platform | |
parent | aaa127a084099c53e54e1ccd01f4ef54f99acf68 (diff) | |
download | chef-acf5c365ca3e5c221af386a5ffa7bb1c84a50c31.tar.gz |
fix specs
Diffstat (limited to 'lib/chef/platform')
-rw-r--r-- | lib/chef/platform/service_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/platform/service_helpers.rb b/lib/chef/platform/service_helpers.rb index 3ef6ee4ae3..b392152651 100644 --- a/lib/chef/platform/service_helpers.rb +++ b/lib/chef/platform/service_helpers.rb @@ -47,7 +47,7 @@ class Chef end if ::File.exist?(Chef.path_to("/sbin/initctl")) - service_resource_providers << :upstart + providers << :upstart end if ::File.exist?(Chef.path_to("/sbin/insserv")) @@ -99,7 +99,7 @@ class Chef def systemd_is_init? ::File.exist?(Chef.path_to("/proc/1/comm")) && - IO.read("/proc/1/comm").chomp == "systemd" + ::File.open(Chef.path_to("/proc/1/comm")).gets.chomp == "systemd" end def has_systemd_service_unit?(svc_name) |