Package: corekeeper
Version: 1.5
Severity: wishlist

Hi Paul,

it would be nice if I can get corekeepers functionality without getting
daily cron-mails if something crashed.

My idea is to establish a /etc/default/corekeeper file which sets a
variable, e.g.

SEND_NOTIFICATIONS=yes

and then inside /etc/cron.daily/corekeeper:

[...]
if [ -r /etc/default/corekeeper ]; then
    . /etc/cron.daily/corekeeper
fi

if [ "$SEND_NOTIFICATIONS" = "yes" ]; then
    if [ -s new ] ; then
        echo 'New core file(s):'
        echo
        cat new
        echo
    fi

    if [ -s deleted ] ; then
        echo 'Deleted core file(s):'
        echo
        sort deleted
        echo
    fi

    if [ -s old ] ; then
        echo 'Old core file(s):'
        echo
        cat old
        echo
    fi
fi
[...]

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'buildd-unstable'), 
(400, 'stable'), (110, 'experimental'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages corekeeper depends on:
ii  procps  2:3.3.10-4

corekeeper recommends no packages.

corekeeper suggests no packages.

-- no debconf information

Reply via email to