    # File lib/chef/provider/service/freebsd.rb, line 70
            def define_resource_requirements
              shared_resource_requirements
              requirements.assert(:start, :enable, :reload, :restart) do |a|
                a.assertion { @rcd_script_found }
                a.failure_message Chef::Exceptions::Service, "#{@new_resource}: unable to locate the rc.d script"
              end

              requirements.assert(:all_actions) do |a|
                a.assertion { @enabled_state_found }
                # for consistentcy with original behavior, this will not fail in non-whyrun mode;
                # rather it will silently set enabled state=>false
                a.whyrun "Unable to determine enabled/disabled state, assuming this will be correct for an actual run.  Assuming disabled."
              end

              requirements.assert(:start, :enable, :reload, :restart) do |a|
                a.assertion { @rcd_script_found && service_enable_variable_name != nil }
                a.failure_message Chef::Exceptions::Service, "Could not find the service name in #{@init_command} and rcvar"
                # No recovery in whyrun mode - the init file is present but not correct.
              end
            end