Add crash reporter's init scripts
Part of a three CLs commit that moves crash reporter scripts out of platform/init. BUG=chromium:346449 TEST=none CQ-DEPEND=Ib74673a38ef3886b9b23e2f152dd796a3e29855a CQ-DEPEND=I079759d0a096c50600c292cc37d3486b1c44e56a Change-Id: Icaad09443e60ff8dd4527d426cc11204a65c5f96 Reviewed-on: https://chromium-review.googlesource.com/194298 Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Bertrand Simonnet <bsimonnet@chromium.org> Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
This commit is contained in:
parent
042c3d406a
commit
ebad658b41
2 changed files with 33 additions and 0 deletions
21
crash_reporter/init/crash-reporter.conf
Normal file
21
crash_reporter/init/crash-reporter.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (c) 2011 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 "Initialize crash reporting services"
|
||||
author "chromium-os-dev@chromium.org"
|
||||
|
||||
# This job merely initializes its service and then terminates; the
|
||||
# actual checking and reporting of crash dumps is triggered by an
|
||||
# hourly cron job.
|
||||
start on starting system-services
|
||||
|
||||
pre-start script
|
||||
mkdir -p /var/spool
|
||||
end script
|
||||
|
||||
# crash_reporter uses argv[0] as part of the command line for
|
||||
# /proc/sys/kernel/core_pattern. That command line is invoked by
|
||||
# the kernel, and can't rely on PATH, so argv[0] must be a full
|
||||
# path; we invoke it as such here.
|
||||
exec /sbin/crash_reporter --init
|
||||
12
crash_reporter/init/warn-collector.conf
Normal file
12
crash_reporter/init/warn-collector.conf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2013 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 "Runs a daemon which collects and reports kernel warnings"
|
||||
author "chromium-os-dev@chromium.org"
|
||||
|
||||
start on started system-services
|
||||
stop on stopping system-services
|
||||
respawn
|
||||
|
||||
exec warn_collector
|
||||
Loading…
Add table
Reference in a new issue