- change /etc/crontab. All anacron jobs in cron.daily,weekly,... are check

by anacron every hour. Anacron run them if they didn't run today.
This commit is contained in:
Marcela Mašláňová 2009-01-26 09:25:39 +00:00
parent 542c8fff18
commit 6eac212438
2 changed files with 16 additions and 7 deletions

13
crontab
View File

@ -2,9 +2,12 @@ SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
#sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

View File

@ -1,13 +1,14 @@
Summary: Root crontab files used to schedule the execution of programs
Name: crontabs
Version: 1.10
Release: 25%{?dist}
Release: 26%{?dist}
License: Public Domain and GPLv2
Group: System Environment/Base
Source0: crontab
Source1: run-parts
Source2: config
BuildArch: noarch
Requires: /etc/cron.d/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@ -34,15 +35,20 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config(noreplace) /etc/crontab
%{_bindir}/run-parts
%config(noreplace) /etc/sysconfig/crontab
%config(noreplace) /etc/crontab
%dir /etc/cron.hourly
%dir /etc/cron.daily
%dir /etc/cron.weekly
%dir /etc/cron.monthly
%changelog
* Mon Jan 26 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.10-26
- change /etc/crontab. All anacron jobs in cron.daily,weekly,...
are check by anacron every hour. Anacron run them if they didn't
run today.
* Mon Dec 1 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> 1.10-25
- Added /etc/cron.{hourly,daily,weekly,monthly} dirs again. bz#473353