Fix problem - cron.hourly, daily not running.
This commit is contained in:
parent
611a38d23f
commit
41a79e2e0d
@ -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: 17%{?dist}
|
Release: 18%{?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
|
||||||
|
* Tue Sep 25 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-18
|
||||||
|
- cron.{hourly, daily,...} run ok
|
||||||
|
- rhbz#296741
|
||||||
|
|
||||||
* Thu Aug 30 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-17
|
* Thu Aug 30 2007 Marcela Maslanova <mmaslano@redhat.com> 1.10-17
|
||||||
- better solution of configuration script
|
- better solution of configuration script
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# if cron.daily was run today
|
|
||||||
AUX1=`cat /var/spool/anacron/cron.daily`
|
|
||||||
AUX2=`date +%Y%m%d`
|
|
||||||
[ "$AUX1" == $AUX2 ] || exit 0
|
|
||||||
|
|
||||||
# run-parts - concept taken from Debian
|
# run-parts - concept taken from Debian
|
||||||
|
|
||||||
# keep going when something fails
|
# keep going when something fails
|
||||||
|
Loading…
Reference in New Issue
Block a user