|
Packit Service |
779887 |
# This configuration file specifies which programs should be run
|
|
Packit Service |
779887 |
# when the specified event occurs in problem directory lifetime.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# It consists of directives and rules.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# Directives start with a reserved word. Currently, there is only one
|
|
Packit Service |
779887 |
# directive, "include". Its format is "include FILE".
|
|
Packit Service |
779887 |
# It causes files which match FILE to be read and
|
|
Packit Service |
779887 |
# parsed as if they are inserted textually where this directive
|
|
Packit Service |
779887 |
# occurs. FILE can use shell pattern metacharacters (*,?,etc) to
|
|
Packit Service |
779887 |
# specify multiple files. Relative paths are interpreted relative
|
|
Packit Service |
779887 |
# to current file.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# Rule starts with a line with non-space leading character.
|
|
Packit Service |
779887 |
# All subsequent lines which start with space or tab form one rule.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# EVENT=post-create
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# cp /etc/example.conf .
|
|
Packit Service |
779887 |
# uptime > uptime
|
|
Packit Service |
779887 |
# echo $HOSTNAME `uname -r`
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# This example event will copy `/etc/example.conf` to newly created
|
|
Packit Service |
779887 |
# problem directory, store current uptime in `uptime` file
|
|
Packit Service |
779887 |
# and prints current hostname and uname to logs.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# Rules may be commented out with #. One # is sufficient to comment out
|
|
Packit Service |
779887 |
# even a multi-line rule (no need to comment out every line).
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# Rules specify which programs to run on the problem directory.
|
|
Packit Service |
779887 |
# Each rule may have conditions to be checked before the program is run.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# Conditions have form VAR=VAL or VAL~=REGEX, where VAR is either
|
|
Packit Service |
779887 |
# word "EVENT" or a name of problem directory element to be checked
|
|
Packit Service |
779887 |
# (for example, "executable", "package", hostname" etc).
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# If all conditions match, the remaining part of the rule
|
|
Packit Service |
779887 |
# (the "program" part) is run in the shell.
|
|
Packit Service |
779887 |
# All shell language constructs are valid.
|
|
Packit Service |
779887 |
# All stdout and stderr output is captured and passed to abrt
|
|
Packit Service |
779887 |
# and possibly to abrt's frontends and shown to the user.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# If the program terminates with nonzero exit code,
|
|
Packit Service |
779887 |
# the event processing is considered unsuccessful and is stopped.
|
|
Packit Service |
779887 |
# Last captured output line, if any, is considered to be
|
|
Packit Service |
779887 |
# the error message indicating the reason of the failure,
|
|
Packit Service |
779887 |
# and may be used by abrt as such.
|
|
Packit Service |
779887 |
#
|
|
Packit Service |
779887 |
# If the program terminates successfully, next rule is read
|
|
Packit Service |
779887 |
# and processed. This process is repeated until the end of this file.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
include events.d/*.conf
|
|
Packit Service |
779887 |
include workflows.d/*.conf
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
# For testing purposes only
|
|
Packit Service |
779887 |
#EVENT=report_Dummy type=libreport echo "Hello world" >> /tmp/libreport.log
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
EVENT=report-gui type=libreport
|
|
Packit Service |
779887 |
report-gtk -- "$DUMP_DIR"
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
EVENT=report-cli type=libreport
|
|
Packit Service |
779887 |
report-cli -- "$DUMP_DIR"
|