summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/freebsd.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-08-19 19:13:30 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-08-25 09:57:00 -0700
commit9e398d9540c70e5a0bcaab554f3648055d97e8ba (patch)
treea5f8fcc45093d9e5d704dac0989c35129173053d /lib/chef/provider/service/freebsd.rb
parent16c56e408366e4af6bd469442342ecf597c5d9d9 (diff)
downloadchef-9e398d9540c70e5a0bcaab554f3648055d97e8ba.tar.gz
fix supports hash issues in service providers
- redhat provider now allows the user to override :status - gentoo provider now allows the user to override :status and :restart - service providers now dup the status hash and mutate their private copy instead of mutating the new_resource
Diffstat (limited to 'lib/chef/provider/service/freebsd.rb')
-rw-r--r--lib/chef/provider/service/freebsd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/freebsd.rb b/lib/chef/provider/service/freebsd.rb
index 6c78f86fe0..78ca0be235 100644
--- a/lib/chef/provider/service/freebsd.rb
+++ b/lib/chef/provider/service/freebsd.rb
@@ -99,7 +99,7 @@ class Chef
def restart_service
if new_resource.restart_command
super
- elsif new_resource.supports[:restart]
+ elsif supports[:restart]
shell_out_with_systems_locale!("#{init_command} fastrestart")
else
stop_service