# File lib/chef/provider/service/upstart.rb, line 126 def stop_service # Calling stop on a service that is already stopped will return 1 # Our 'goal' when we call stop is to ensure the service is stopped unless @current_resource.running Chef::Log.debug("#{@new_resource}: Not running, not stopping") else if @new_resource.stop_command super else run_command_with_systems_locale(:command => "/sbin/stop #{@new_resource.service_name}") end end end