From 804def86317adc82317f19e2f4cea379076f8107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Mon, 22 Oct 2007 08:32:05 +0000 Subject: [PATCH] run-parts log also end of each job --- crontabs.spec | 6 +++++- run-parts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crontabs.spec b/crontabs.spec index 5e0bb83..0ec0faa 100644 --- a/crontabs.spec +++ b/crontabs.spec @@ -1,7 +1,7 @@ Summary: Root crontab files used to schedule the execution of programs Name: crontabs Version: 1.10 -Release: 18%{?dist} +Release: 19%{?dist} License: Public Domain and GPLv2 Group: System Environment/Base Source0: crontab @@ -50,6 +50,10 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace) /etc/sysconfig/crontab %changelog +* Mon Oct 22 2007 Marcela Maslanova 1.10-19 +- run-parts log also end of each job (patch from J. Kamens) +- Resolves: rhbz#303081 + * Tue Sep 25 2007 Marcela Maslanova 1.10-18 - cron.{hourly, daily,...} run ok - rhbz#296741 diff --git a/run-parts b/run-parts index e321762..98812da 100755 --- a/run-parts +++ b/run-parts @@ -26,12 +26,14 @@ for i in $1/*[^~,] ; do [ "${i%,v}" != "${i}" ] && continue if [ -x $i ]; then + logger -i -p cron.notice -t "run-parts($1)" "starting $(basename $i)" $i 2>&1 | awk -v "progname=$i" \ 'progname { print progname ":\n" progname=""; } { print; }' + logger -i -p cron.notice -t "run-parts($1)" "finished $(basename $i)" fi done