HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux simsoft.ro 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/upstart/sessions/update-notifier-crash.conf
description "Notification regarding a crash report"
author "Brian Murray <brian@ubuntu.com>"

start on (
    file FILE=/var/crash/*.crash EVENT=create or
    file FILE=/var/crash/*.crash EVENT=modify
)

env MATCH=NULL
instance $MATCH

script
DATE=$(date)
echo "$DATE crash report $MATCH detected"
if [ -e /var/lib/apport/autoreport ]; then
    echo "$DATE autoreporting enabled exiting"
    exit 0
fi
if [ -O $MATCH ]; then
    /usr/share/apport/apport-gtk
else
    SYSTEMCRASH=0
    /usr/share/apport/apport-checkreports --system || SYSTEMCRASH=$?
    if [ $SYSTEMCRASH -eq 0 ]; then
        # not in admin group return
        ADMIN=0
        groups | grep -qE "sudo|admin" || ADMIN=$?
        if [ $ADMIN -ne 0 ]; then
            exit 1
        fi
        # be nice and always ask first before firing up pkexec
        if [ -x /lib/udev/watershed ]; then
            /lib/udev/watershed sh -c '/usr/lib/update-notifier/system-crash-notification'
        else
            /usr/lib/update-notifier/system-crash-notification
        fi
    fi
fi
end script