Package: at Version: 3.1.23-1 Severity: important Tags: patch See also #885891.
I have found a system crashed (power loss) just in the moment new at jobs are created. This results in 0-size files which are leading to a weird atd behaviour. In my opinion the mitigation of #885891 should be extended to remove these files also on startup. In the systemd unit the line ExeecStartPre should be changed to: ExecStartPre=-/usr/bin/find /var/spool/cron/atjobs/ -type f -not -newercc /run/systemd -name "=*" -or -size 0 -delete -- System Information: Debian Release: 10.4 APT prefers stable-updates APT policy: (600, 'stable-updates'), (600, 'stable'), (500, 'oldstable-updates'), (500, 'oldstable'), (490, 'bionic-updates'), (490, 'bionic-security'), (490, 'bionic-backports'), (490, 'bionic'), (200, 'testing'), (101, 'unstable'), (10, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.6.0-0.bpo.2-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8), LANGUAGE=de_DE:de:en_US:en (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages at depends on: ii libc6 2.28-10 ii libfl2 2.6.4-6.2 ii libpam-runtime 1.3.1-5 ii libpam0g 1.3.1-5 ii libselinux1 2.8-1+b1 ii lsb-base 10.2019051400 Versions of packages at recommends: ii postfix [mail-transport-agent] 3.4.10-0+deb10u1 at suggests no packages. -- no debconf information
Index: at-3.1.23/atd.service.in =================================================================== --- at-3.1.23.orig/atd.service.in +++ at-3.1.23/atd.service.in @@ -4,7 +4,7 @@ Documentation=man:atd(8) After=remote-fs.target nss-user-lookup.target [Service] -ExecStartPre=-find @atjobdir@ -type f -name "=*" -not -newercc /run/systemd -delete +ExecStartPre=-find @atjobdir@ -type f -not -newercc /run/systemd -name "=*" -or size 0 -delete ExecStart=@sbindir@/atd -f IgnoreSIGPIPE=false KillMode=process