run-parts log also end of each job
This commit is contained in:
parent
7009dddadb
commit
804def8631
@ -1,7 +1,7 @@
|
|||||||
Summary: Root crontab files used to schedule the execution of programs
|
Summary: Root crontab files used to schedule the execution of programs
|
||||||
Name: crontabs
|
Name: crontabs
|
||||||
Version: 1.10
|
Version: 1.10
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
License: Public Domain and GPLv2
|
License: Public Domain and GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source0: crontab
|
Source0: crontab
|
||||||
@ -50,6 +50,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) /etc/sysconfig/crontab
|
%config(noreplace) /etc/sysconfig/crontab
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-19
|
||||||
|
- run-parts log also end of each job (patch from J. Kamens)
|
||||||
|
- Resolves: rhbz#303081
|
||||||
|
|
||||||
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
|
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
|
||||||
- cron.{hourly, daily,...} run ok
|
- cron.{hourly, daily,...} run ok
|
||||||
- rhbz#296741
|
- rhbz#296741
|
||||||
|
@ -26,12 +26,14 @@ for i in $1/*[^~,] ; do
|
|||||||
[ "${i%,v}" != "${i}" ] && continue
|
[ "${i%,v}" != "${i}" ] && continue
|
||||||
|
|
||||||
if [ -x $i ]; then
|
if [ -x $i ]; then
|
||||||
|
logger -i -p cron.notice -t "run-parts($1)" "starting $(basename $i)"
|
||||||
$i 2>&1 | awk -v "progname=$i" \
|
$i 2>&1 | awk -v "progname=$i" \
|
||||||
'progname {
|
'progname {
|
||||||
print progname ":\n"
|
print progname ":\n"
|
||||||
progname="";
|
progname="";
|
||||||
}
|
}
|
||||||
{ print; }'
|
{ print; }'
|
||||||
|
logger -i -p cron.notice -t "run-parts($1)" "finished $(basename $i)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user