def status_post_hook(service = nil)
      if service.nil?
        log_external_service_header
        external_services.each_key do |service_name|
          status = send(to_method_name("external_status_#{service_name}"), :sparse)
          log status
        end
      else
        # Request verbose status if the service is asked for by name.
        if service_external?(service)
          status = send(to_method_name("external_status_#{service}"), :verbose)
          log status
        end
      end
    end
def status_post_hook(service = nil)
      if service.nil?
        log_external_service_header
        external_services.each_key do |service_name|
          status = send(to_method_name("external_status_#{service_name}"), :sparse)
          log status
        end
      else
        # Request verbose status if the service is asked for by name.
        if service_external?(service)
          status = send(to_method_name("external_status_#{service}"), :verbose)
          log status
        end
      end
    end
Status gets its own hook because each externalized service will
 have its own things to do in order to report status.
 As above, we may also include an output header to show that we're
 reporting on external services.

 Your callback for this function should be in the form
 'external_status_#{service_name}(detail_level)
 where detail_level is :sparse|:verbose
 :sparse is used when it's a summary service status list, eg
 "$appname-ctl status"
 :verbose is used when the specific service has been named, eg
 "$appname-ctl status postgresql"