Ken Mixter | c49dbd4 | 2010-12-14 17:44:11 -0800 | [diff] [blame^] | 1 | # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can |
| 3 | # be found in the LICENSE file. |
| 4 | |
| 5 | # This file has the format: |
| 6 | # <basename>:<shell command>\n |
| 7 | # |
| 8 | # Where when any executable with the basename <basename> crashes, the |
| 9 | # given <shell command> is executed and its standard output and |
| 10 | # standard error is sent along with the crash report. |
| 11 | # |
| 12 | # Use caution in modifying this file. Only run common unix commands |
| 13 | # here as these commands will be run when a crash has recently |
| 14 | # occurred and we should avoid running anything that might cause |
| 15 | # another crash. Similarly these command block the notification of |
| 16 | # the crash to parent processes, so commands should execute quickly. |
| 17 | # |
| 18 | update_engine:cat $(ls -1tr /var/log/update_engine | tail -5 | sed s.^./var/log/update_engine/.) | tail -c 50000 |
| 19 | |
| 20 | # The following rules are only for testing purposes. |
| 21 | crash_log_test:echo hello world |
| 22 | crash_log_recursion_test:sleep 1 && /home/autotest/tests/crash_log_recursion_test |