From 6eac212438694a45516530175f5fd656ffa52abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Mon, 26 Jan 2009 09:25:39 +0000 Subject: [PATCH] - 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. --- crontab | 13 ++++++++----- crontabs.spec | 10 ++++++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/crontab b/crontab index 55e3c9e..ecab3da 100644 --- a/crontab +++ b/crontab @@ -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 diff --git a/crontabs.spec b/crontabs.spec index 54d00f7..6c55469 100644 --- a/crontabs.spec +++ b/crontabs.spec @@ -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á 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) 1.10-25 - Added /etc/cron.{hourly,daily,weekly,monthly} dirs again. bz#473353