opscode/chef — pull request #2277 by liseki (2014-10-22 08:25:12+00:00)
Title: Properly load FreeBSD service status

Service status in `Chef::Provider::Service::Freebsd` is determined by `determine_current_status` defined in `Chef::Provider::Service::Simple`. This method assumes the current status to be `true` and only sets it to `false` if it fails. It seems `Chef::Provider::Service::Freebsd` mistakenly does not set the current status to true before determining the status. This fixes that and prevents why-run from complaining about service status not available when the service is actually running.