#1131375 debianutils: Add options -A, --after and -B, --before for greater flexibility

Package:
debianutils
Source:
debianutils
Description:
Miscellaneous utilities specific to Debian
Submitter:
Alessandro Vesely
Date:
2026-08-27 15:21:01 UTC
Severity:
normal
#1131375#5
Date:
2026-03-20 17:34:48 UTC
From:
To:
Dear Maintainer,

I'm having troubles monitoring what happens during the cron.daily process.
While a --time option (see bug#282553) might help, I got the feeling that
after some trials I'd have to tweak it further.  So, for maximum flexibility,
I turned to -A and -B which allow a user-supplied utility to be called
after or before each script execution.  Such utility can log the time, but also
examine various other things.

I add a patch for run-parts.c and run-parts.8.

#1131375#10
Date:
2026-03-23 10:22:48 UTC
From:
To:
I have now changed the daily crontab line like so:

test -x /usr/sbin/anacron || ( cd / && run-parts --report -A trace-run-parts -B trace-run-parts /etc/cron.daily )

Where trace-run-parts reads as follows:

#! /bin/bash
#
# Run as options -A, -B of run-parts cron.daily

msg=""
if [ "$2" ]; then
	action="finished"
	if [ "$2" != "0" ]; then
		msg=", exit code $2"
	fi
else
	action="starting"
fi

logger -t 'run-parts daily' -p daemon.info "$action $1$msg"

This allowed me to understand the reasons of an error.  Nevertheless, I'll keep this customization because I like the way the daemon.log gets framed, cutting out what parts belong to the end-of-day process.

I hope this patch will be added to future releases, so as to avoid losing processes due to "Try `run-parts --help' for more information.\n" after upgrades.

#1131375#15
Date:
2026-08-27 15:18:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
debianutils, 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 1131375@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ileana Dumitrescu <ileanadumitrescu95@gmail.com> (supplier of updated debianutils 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 27 Aug 2026 17:54:35 +0300
Source: debianutils
Architecture: source
Version: 5.24
Distribution: unstable
Urgency: medium
Maintainer: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
Changed-By: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
Closes: 1131363 1131375
Changes:
 debianutils (5.24) unstable; urgency=medium
 .
   * d/control: Bump standards version from 4.7.2 to 4.7.4, bump
     debhelper-compat version from 13 to 14, and remove redundant
     field, Rules-Requires-Root: no.
   * acinclude.m4: Update DEBIANUTILS_VERSION to 5.24.
   * run-parts.c: Recognise short option for --debug (Closes: #1131363).
   * run-parts: Add options -A, --after and -B, --before for greater
     flexibility (Closes: #1131375).
   * d/tests/run-parts.test: Extend testing of run-parts for new options.
Checksums-Sha1:
 67bb18377ec346973ed7fd07bf95931a8d1bde14 1631 debianutils_5.24.dsc
 8748ed38f4a18ea04be9574ec2e9cd9002f21879 83012 debianutils_5.24.tar.xz
 c3ad85476074ae10cde4d62d4162567f0db772bc 6258 debianutils_5.24_amd64.buildinfo
Checksums-Sha256:
 ad439aa6c596e74d6a72fd76029543d2d58145bb6bb79036e8fa8be77f6f35a7 1631 debianutils_5.24.dsc
 bf79c301ad48e82ddb09d8c0770f6d44294ee9529ae5e54164072f7bf5c57016 83012 debianutils_5.24.tar.xz
 6c309721c0bcf0884ef31c119aaacf4e0eeb973451f1f3790e1759e79dd632ea 6258 debianutils_5.24_amd64.buildinfo
Files:
 e475d5f49f57e30ecdb39af5bbec2ee7 1631 utils required debianutils_5.24.dsc
 3fb89e6356cba52322b64135df0d3954 83012 utils required debianutils_5.24.tar.xz
 3450c60c1dea74a8fc73bea4d78e6ebb 6258 utils required debianutils_5.24_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+ibKeEvhiJJ/IrmfZXDqARRvc1QFAmqQUNQACgkQZXDqARRv
c1TEdg/9FDaGqdHYd1ZQVm2ZjpDtUHwXnGUk3ikvGCD1yr6CTjp8iZXBsJHy7ADX
RjKJOWbxBqLAFveKTrsj9ZMEOgB8RhP7pP4TOJTsjSleZrDiZRA1he7apyaO85BJ
VR9hH9VkewUoqNq6H+o9kvsdm9qpt0tLn1QBqE3p+qLnvEUWZQ/PtrQYfiDlHzx1
MNawiwJF8iCE1Ex43v5Ux1OtO4i0wEQLlNf072xVFuK8OsIJzUH//VBDQQvUvpfJ
ZJ4hi/0Q/RdE5XzNMW5kgaa7ZrHRIZt31CLZOr7s5YeVcPuQzjpWLpwaSwQSIEE2
HDwpI7phdgnna0jAAAoZDSvyuxEB14/TN/2Eh+638Nau7teDAZGdTZ64pW0LTdd7
t4QnNG0RNltgDogPllYjUZ9v7Pt2FmSwr2o4DOtgI3tl3ss4vpLIoqwe3UA7Iylr
K33fbn1cnpl6EsCFVGnCEPavMQTAC63WVNIjxj5cNqTjiSGIb9/mNkY6K2TXQq+5
dheiyQvas/6aBhfcUe7xpOdDZQtb87zHADD90ZVuSFe3Hm5u/HqKWnDC8u+3V2du
nRp1eAXqN3wR7jtWbeGhJU7iCZerdp+lswXnGnApj0iuW6Ta5PYenDXuyTTv8D46
+n7xC1f1UWCKPNNLoK4F7jRBGP4oBwdxghruyrfcr1FRvsF8ReE=
=jc67
-----END PGP SIGNATURE-----