    # File lib/chef/provider/service/macosx.rb, line 109
            def set_service_status
              return if @plist == nil

              @current_resource.enabled(!@plist.nil?)

              if @current_resource.enabled
                @owner_uid = ::File.stat(@plist).uid
                @owner_gid = ::File.stat(@plist).gid

                shell_out!("launchctl list", :user => @owner_uid, :group => @owner_gid).stdout.each_line do |line|
                  case line
                  when /(\d+|-)\s+(?:\d+|-)\s+(.*\.?)#{@current_resource.service_name}/
                    pid = $1
                    @current_resource.running(!pid.to_i.zero?)
                  end
                end
              else
                @current_resource.running(false)
              end
            end