blob: 966cc4ce70fa037da754b5168995395dedc6bd56 [file] [log] [blame]
# Copyright 2016 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Run per-boot crash collection tasks"
author "chromium-os-dev@chromium.org"
# Updates to this job's started conditions should also update
# init/upstart/test-init/boot-kernel-crash.conf.
start on stopped crash-reporter and started system-services
# This is a one-shot program that exits when it's done.
task
# In case we crash ourselves (oops), try again.
respawn
# Only retry 10 times (total) before giving up. We pick a really large time
# limit to make sure we don't keep respawning forever.
respawn limit 10 86400
# Allow us to be killed as we are not critical to the system. If we have a
# leak while collecting reports, better to crash & restart than to OOM-panic
# the system.
oom score -100
# TODO: Add a "limit as" directive here after doing some runtime analysis.
exec /sbin/crash_reporter --boot_collect