Your message dated Wed, 13 Sep 2023 09:12:50 +0000
with message-id <e1qglvw-0001ek...@fasolo.debian.org>
and subject line Bug#1051805: fixed in systemd-cron 2.1.3-1
has caused the Debian Bug report #1051805,
regarding systemd-cron: shell redirect not working in crontab entries
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1051805: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051805
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd-cron
Version: 2.1.2-1
Severity: normal
Dear Maintainer,
I can put a simple command with a redirect to a file or /dev/null, and
systemd-cron continues to email the output of the command. See the
following excerpt from the email, which shows the command I'm running:
----
Process: 3729378 ExecStart=/bin/sh
/run/systemd/generator/cron-john-john-3.sh (code=exited, status=0/SUCCESS)
Main PID: 3729378 (code=exited, status=0/SUCCESS)
CPU: 28ms
2023-09-12T18:44:00+0000 nucleus.hjsoft.com systemd[1]: Starting
cron-john-john-3.service - [Cron] "* * * * * ls -la > /dev/null"...
2023-09-12T18:44:00+0000 nucleus.hjsoft.com sh[3729380]: total 80
2023-09-12T18:44:00+0000 nucleus.hjsoft.com sh[3729380]: drwxr-xr-x 18 root
root 4096 Aug 31 16:21 .
2023-09-12T18:44:00+0000 nucleus.hjsoft.com sh[3729380]: drwxr-xr-x 18 root
root 4096 Aug 31 16:21 ..
2023-09-12T18:44:00+0000 nucleus.hjsoft.com sh[3729380]: lrwxrwxrwx 1 root
root 7 Oct 5 2022 bin -> usr/bin
2023-09-12T18:44:00+0000 nucleus.hjsoft.com sh[3729380]: drwxr-xr-x 2 root
root 4096 Aug 30 2011 boot
----
I would have not expected to see the output in email.
Work-around:
I can get the redirect to work, if I change the cron entry to:
----
* * * * * bash -lc "ls -la > /dev/null"
----
-- Package-specific info:
-- output of systemctl list-timers
NEXT LEFT LAST PASSED
UNIT ACTIVATES
Tue 2023-09-12 18:50:35 95ms ago Tue 2023-09-12 18:37:28 13min ago
apt-listbugs.timer apt-listbugs.service
Tue 2023-09-12 18:51:00 24s Tue 2023-09-12 18:50:00 34s ago
cron-john-john-1.timer cron-john-john-1.service
Tue 2023-09-12 18:51:00 24s Tue 2023-09-12 18:50:00 34s ago
cron-john-john-3.timer cron-john-john-3.service
Tue 2023-09-12 19:00:00 9min - -
cron-sendmail-smmsp-0.timer cron-sendmail-smmsp-0.service
Tue 2023-09-12 19:00:00 9min - -
cron-tiger-root-0.timer cron-tiger-root-0.service
Tue 2023-09-12 19:02:00 11min - -
cron-logcheck-logcheck-0.timer cron-logcheck-logcheck-0.service
Tue 2023-09-12 19:49:00 58min Tue 2023-09-12 18:49:00 1min 34s ago
cron-debsecan-daemon-0.timer cron-debsecan-daemon-0.service
Wed 2023-09-13 00:00:00 5h 9min - -
cron-john-john-2.timer cron-john-john-2.service
Wed 2023-09-13 00:00:00 5h 9min Tue 2023-09-12 00:00:00 18h ago
logrotate.timer logrotate.service
Wed 2023-09-13 01:14:21 6h Tue 2023-09-12 03:39:18 15h ago
plocate-updatedb.timer plocate-updatedb.service
Wed 2023-09-13 02:32:06 7h Tue 2023-09-12 13:52:16 4h 58min ago
apt-daily.timer apt-daily.service
Wed 2023-09-13 04:00:00 9h - -
cron-backup-root-0.timer cron-backup-root-0.service
Wed 2023-09-13 05:05:00 10h - -
cron-john-john-0.timer cron-john-john-0.service
Wed 2023-09-13 05:06:03 10h Tue 2023-09-12 05:06:03 13h ago
systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Wed 2023-09-13 05:21:04 10h Tue 2023-09-12 05:21:04 13h ago
chkrootkit.timer chkrootkit.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-aptitude.timer cron-daily-aptitude.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-checksecurity.timer cron-daily-checksecurity.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-cleanup_mqueue.timer cron-daily-cleanup_mqueue.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-find.timer cron-daily-find.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-locate.timer cron-daily-locate.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-makewhatiscron.timer cron-daily-makewhatiscron.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-rpm.timer cron-daily-rpm.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-sendmail.timer cron-daily-sendmail.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-slocate.timer cron-daily-slocate.service
Wed 2023-09-13 06:10:00 11h Tue 2023-09-12 06:10:00 -
cron-daily-tripwire.timer cron-daily-tripwire.service
Wed 2023-09-13 06:30:34 11h Tue 2023-09-12 06:37:30 12h ago
spamassassin-maintenance.timer spamassassin-maintenance.service
Wed 2023-09-13 06:51:10 12h Tue 2023-09-12 06:47:00 12h ago
apt-daily-upgrade.timer apt-daily-upgrade.service
Wed 2023-09-13 11:38:44 16h Tue 2023-09-12 01:09:55 17h ago
man-db.timer man-db.service
Sun 2023-09-17 03:10:55 4 days Sun 2023-09-10 03:11:00 2 days ago
e2scrub_all.timer e2scrub_all.service
Mon 2023-09-18 00:15:00 5 days Mon 2023-09-11 00:15:00 1 day 18h ago
systemd-cron-cleaner.timer systemd-cron-cleaner.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-apt-xapian-index.timer cron-weekly-apt-xapian-index.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-checksecurity.timer cron-weekly-checksecurity.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-find.timer cron-weekly-find.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-locate.timer cron-weekly-locate.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-makewhatiscron.timer cron-weekly-makewhatiscron.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-mlocate.timer cron-weekly-mlocate.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-rpm.timer cron-weekly-rpm.service
Mon 2023-09-18 06:15:00 5 days Mon 2023-09-11 06:15:00 -
cron-weekly-slocate.timer cron-weekly-slocate.service
Sun 2023-10-01 06:20:00 2 weeks 4 days Fri 2023-09-01 06:20:00 -
cron-monthly-000loaddelay.timer cron-monthly-000loaddelay.service
39 timers listed.
Pass --all to see loaded but inactive timers, too.
-- output of systemd-delta
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-really26-rh25-20230427021705.xenU.x86_64 (SMP w/1 CPU
thread)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd-cron depends on:
ii cron-daemon-common 3.0pl1-175
ii libc6 2.37-8
ii libssl3 3.0.10-1
ii libstdc++6 13.2.0-3
ii systemd [systemd-sysusers] 254.1-3
ii systemd-sysv 254.1-3
systemd-cron recommends no packages.
Versions of packages systemd-cron suggests:
ii sendmail-bin [mail-transport-agent] 8.17.2-1
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: systemd-cron
Source-Version: 2.1.3-1
Done: Alexandre Detiste <alexandre.deti...@gmail.com>
We believe that the bug you reported is fixed in the latest version of
systemd-cron, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1051...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alexandre Detiste <alexandre.deti...@gmail.com> (supplier of updated
systemd-cron package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 13 Sep 2023 10:41:30 +0200
Source: systemd-cron
Architecture: source
Version: 2.1.3-1
Distribution: unstable
Urgency: low
Maintainer: Debian Systemd Maintainers
<pkg-systemd-maintain...@lists.alioth.debian.org>
Changed-By: Alexandre Detiste <alexandre.deti...@gmail.com>
Closes: 1051805
Changes:
systemd-cron (2.1.3-1) unstable; urgency=low
.
* do not strip '> /dev/null' from the end of crontab anymore
(Closes: #1051805)
Checksums-Sha1:
b530add1b3770e6c11aee7f998a52e5636394423 2170 systemd-cron_2.1.3-1.dsc
110c70d623aff454638c498ad5fb382130b5dddd 53796 systemd-cron_2.1.3.orig.tar.gz
f2035120c41cb41980ff6d3a889994ea333f66cd 10192
systemd-cron_2.1.3-1.debian.tar.xz
be68e60f58555a8c5e9edc94ec8ce4d3f4ac29ef 6744
systemd-cron_2.1.3-1_source.buildinfo
Checksums-Sha256:
9026a0e5751f870b1d9135c20e5ac2591be23cb247a81735a2ce180035d14ed4 2170
systemd-cron_2.1.3-1.dsc
936270e14955623e3d726d0775ec0a5957b36ced6e429f9a33ea19a1f1bd5d62 53796
systemd-cron_2.1.3.orig.tar.gz
eb992071999f9a539c968274291b34dc19e0dfd2929712bc46f55b2534b1383e 10192
systemd-cron_2.1.3-1.debian.tar.xz
566dd6845d395e681bc08fc2827076b3484a3a38aff93f3ada798589e8efca08 6744
systemd-cron_2.1.3-1_source.buildinfo
Files:
1dff9a52ebc965aeb7ff1a4ca24fa9c0 2170 admin optional systemd-cron_2.1.3-1.dsc
a98f7781bc596e0d5bca0da04407b5f9 53796 admin optional
systemd-cron_2.1.3.orig.tar.gz
c6ccad68f9ae8e824bb87b260256af91 10192 admin optional
systemd-cron_2.1.3-1.debian.tar.xz
ec6bb7eceb42197552839d7da47e41ab 6744 admin optional
systemd-cron_2.1.3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmUBdgoACgkQMfMURUSh
dBoGOhAApULOEMc8TjI4+GH0fXdflilJyclUHIHsRy3HWwd0g8f46H1LHL126ADc
rURxBsYxwBaHYAgTA+CAM5JolzsLvo+/FTXUMpIeIBdaflCRafusXXUKb5A458+K
Egc3ipY3ZF/hgnlv3kpV5mTLMtZYBijxRI45Kh06Ja5hQYCC9SQn76z2riiB0mxm
BooCKJcdRXRDfl4AAmG1JuEgRkzjNyxnMTBMomBBDOa3paR53geY/+wZeO+iVBKl
4S9b3LlQ/d5t47G17hJ72DPMm+ouv7uwU8r7rSWicBpzgTYXvFKqftQ2CNPIJk06
TwDQFGL0hcrd1WmIeMxW6So0V8k4rhvp4slx2tUOApuCJKQKFNVTuRajBrPTuUZT
d56M8tp6CD+SG117Opyugd+9wfcqn09tnjcbt55e/91IqpToPCYaZNK6i1YpOm7S
sHEP3DrKnPfTD4lqhqDmJP6ALUZvTPzgYrNKeWIwxEAyiCLnWO09GsioNZ/GGGdl
tbpcYBQczsMHqCWsU8fdzwyPmpSvA3uMCfyNSY3C+VywJel1uxUHsgpPN5ancDMl
oI1LvERvf+YdCyhUIiyK35bTgvmd1Vk60+MI4fDoGM5McusvLtT1mdkW18lftw0T
mcNa9cB61t8RPCZw3GZ+zjQd8wVw4Tdo3cz9uTPyPAm9RgvAKTc=
=/gkJ
-----END PGP SIGNATURE-----
--- End Message ---