blob: 8b7eea558082a09b52a2d1fbb7ec9a7f9cadf7b8 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Report recovery metrics to UMA"
author "chromium-os-dev@chromium.org"
start on started system-services
script
# Recovery histograms file is written by chromeos-install during recovery.
RECOVERY_HISTOGRAMS="/mnt/stateful_partition/.recovery_histograms"
if [ -f "${RECOVERY_HISTOGRAMS}" ]; then
# Replay events from the histogram file to send the metrics.
metrics_client -R "${RECOVERY_HISTOGRAMS}"
rm -f "${RECOVERY_HISTOGRAMS}"
fi
end script