summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service
diff options
context:
space:
mode:
authorScott Bonds <scott@ggr.com>2014-10-27 14:52:11 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-01-25 10:43:20 -0800
commitc39794b472b950733233fec0a8f99f1f03f07719 (patch)
treefd6ae5cd16c4fa5fffa9487194193e43dd97f6bd /lib/chef/provider/service
parent1c3dc19fb6a0e4f2fd3060f6bb48b8b47af61cdd (diff)
downloadchef-c39794b472b950733233fec0a8f99f1f03f07719.tar.gz
remove redundant methods
Diffstat (limited to 'lib/chef/provider/service')
-rw-r--r--lib/chef/provider/service/openbsd.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/chef/provider/service/openbsd.rb b/lib/chef/provider/service/openbsd.rb
index c6289dfa06..047fc445b6 100644
--- a/lib/chef/provider/service/openbsd.rb
+++ b/lib/chef/provider/service/openbsd.rb
@@ -83,33 +83,6 @@ class Chef
# No recovery in whyrun mode - the init file is present but not correct.
end
end
- def start_service
- if @new_resource.start_command
- super
- else
- shell_out_with_systems_locale!("#{init_command} start")
- end
- end
-
- def stop_service
- if @new_resource.stop_command
- super
- else
- shell_out_with_systems_locale!("#{init_command} stop")
- end
- end
-
- def restart_service
- if @new_resource.restart_command
- super
- elsif @new_resource.supports[:restart]
- shell_out_with_systems_locale!("#{init_command} restart")
- else
- stop_service
- sleep 1
- start_service
- end
- end
def enable_service
if !is_enabled