blob: 92ab7805fc8ed89aaff1ded0766759443aa36b1a [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 full /var reclamation to UMA"
author ""
start on started system-services
# Reclamation file is written by chromeos_startup if /var got full and
# had to be reclaimed.
# If the file is present, we need to notify UMA.
if [ -f "${reclamation_file}" ]; then
metrics_client -s "Startup.ReclaimFullVar" 1
# Remove reclamation file to prevent duplicate reports.
rm -f "${reclamation_file}"
end script