# File lib/chef/provider/service/upstart.rb, line 160 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 #{@job}") end end end