🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1261

Bug#1151023: Add systemd unit to run logcheck at boot

#1261
From: Wolfgang Karall-Ahlborn
Date: Sun, 18 Oct 2026 11:40
57 lines
3796 bytes
Package: logcheck
Version: 1.4.5+deb13u1
Followup-For: Bug #1151023

Dear Maintainer,

Indeed, this change caught us by surprise after the upgrade to Debian
13, as Jeffrey already pointed out the previous behavior made a lot of
sense, so it would be great to see it restored, i.e. by having another
set of logcheck-on-boot.{service,timer} units using OnBootSec and the -R
option when calling logcheck in the ExecStart.

For the time being, as quick fix, removing

 [ ! -d /run/systemd/system ] && 

from the @reboot line /etc/cron.d/logcheck, so it's again as before the
upgrade to Debian 13

@reboot         logcheck    if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi

will also give you back the 'Reboot:'-prefixed mail messages.

Cheers
Wolfgang

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.113+deb13-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages logcheck depends on:
ii  adduser                         3.152
ii  cron [cron-daemon]              3.0pl1-197
ii  lockfile-progs                  0.2.0
ii  logtail                         1.4.5+deb13u1
ii  mime-construct                  1.12+really1.11-1
ii  postfix [mail-transport-agent]  3.10.13-0+deb13u1
ii  systemd-sysv                    257.13-1~deb13u1

Versions of packages logcheck recommends:
ii  logcheck-database  1.4.5+deb13u1

Versions of packages logcheck suggests:
ii  rsyslog [system-log-daemon]  8.2504.0-1+deb13u2

-- Configuration Files:
/etc/logcheck/logcheck.logfiles.d/journal.logfiles changed [not included]

-- no debconf information
Technical Details
Message-ID: <NPxp8-6kjJ-19@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NPxp8-6kjJ-21@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Wolfgang Karall-Ahlborn <lists+debian-bugs@karall-edv.at>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151023: Add systemd unit to run logcheck at boot
Date: Sun, 18 Oct 2026 13:40:02 +0200
Message-ID: <NPxp8-6kjJ-19@gated-at.bofh.it>
References: <NPxp8-6kjJ-21@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <1151023@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Oct 18 11:33:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Wolfgang Karall-Ahlborn <lists+debian-bugs@karall-edv.at>, 1151023@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: logcheck@packages.debian.org
X-Debian-Pr-Message: followup 1151023
X-Debian-Pr-Package: logcheck
X-Debian-Pr-Source: logcheck
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Greylist: delayed 355 seconds by postgrey-1.37 at buxtehude; Sun, 18 Oct 2026 11:30:01 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997383
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 57
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 18 Oct 2026 13:24:02 +0200
X-Original-Message-ID: <179232264270.6716.12792409994751647135.reportbug@elk1.fqdn.at>
X-Original-References: <CAJXyS=h3qi9qhErGbdCHw29OLfOsiLk4548HUhGQGbSaWVjh9Q@mail.gmail.com>