[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#999704: diffmon: /etc/cron.daily/diffmon should skip if systemd timer is available



Package: diffmon
Version: 20020222-8
Severity: normal

/etc/cron.daily/diffmon just contains:

#!/bin/sh

if [ -r /etc/diffmon/diffmon.cf ] && [ -x /usr/bin/diffmon ] ; then

diffmon -c diffmon.cf

fi

But diffmon should not run if a systemd timer is available
(though this is not currently the case due to bug 999702,
to be fixed first).

For instance, /etc/cron.daily/man-db has:

if [ -d /run/systemd/system ]; then
    # Skip in favour of systemd timer.
    exit 0
fi

Similarly, /etc/cron.daily/plocate has:

# Skip if systemd timer is available.
if [ -d /run/systemd/system ]; then
    exit 0
fi

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages diffmon depends on:
ii  bash                            5.1-3.1
ii  postfix [mail-transport-agent]  3.5.13-1

diffmon recommends no packages.

diffmon suggests no packages.

-- Configuration Files:
/etc/diffmon/diffmon.cf changed [not included]

-- no debconf information

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: