blob: cf3881087e8f2d23d6a60516fd46db94507a00e9 [file] [log] [blame]
# Copyright (c) 2014 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 "Run the crash sender periodically"
author ""
start on starting system-services
stop on stopping system-services
# Allow us to be killed as we are not critical to the system. If we have a
# leak, better to crash & restart than to OOM-panic the system.
oom score -100
# TODO: Add a "limit as" directive here after we convert to C++.
# Extra arguments for boards to add.
# Run first crash_sender 5 minutes after boot up, instead of waiting for the
# normal hour between sends. Users with serious issues will generally not
# leave their machines on for an hour; we don't want to lose those reports.
sleep 300
exec periodic_scheduler --period=3600 --timeout=14400 --start_immediately \
--task_name=crash_sender -- /sbin/crash_sender ${CRASH_SENDER_ARGS}
end script