From dab93b21e5cf380422b3baeec9eaa2376613c5fd Mon Sep 17 00:00:00 2001
From: Manoj Srivastava
Date: Sat, 21 Nov 2009 01:33:13 -0600
Subject: [PATCH] New virtual package: cron-daemon
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Create a virtual cron daemon package that:
- Has to provide /usr/bin/crontab and support crontab entries
- Correct execution of /etc/cron.d
- Correct support of /etc/crontab
- Support of crontab entries with names for days and months,
ranges, step values
- Correct execution of /etc/cron.{hourly,daily,weekly,monthly}
Signed-off-by: Javier Fernández-Sanguino Peña
Signed-off-by: Manoj Srivastava
---
policy.sgml | 39 ++++++++++++++++++++++++++++++++--
virtual-package-names-list.txt | 4 ++++
2 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/policy.sgml b/policy.sgml
index 042e82f..76ac0d4 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -6552,13 +6552,48 @@ Reloading description configuration...done.
anacron. Thus, you should only use this
directory for jobs which may be skipped if the system is not
running.)
+
+ Unlike crontab files described in the IEEE Std
+ 1003.1-2008 (POSIX.1) available from
+ , the files in
+ /etc/cron.d and the file
+ /etc/crontab have seven fields; namely:
+
+ - Minute [0,59]
+ - Hour [0,23]
+ - Day of the month [1,31]
+ - Month of the year [1,12]
+ - Day of the week ([0,6] with 0=Sunday)
+ - Username
+ - Command to be run
+
+ Ranges of numbers are allowed. Ranges are two numbers
+ separated with a hyphen. The specified range is inclusive.
+ Lists are allowed. A list is a set of numbers (or ranges)
+ separated by commas. Step values can be used in conjunction
+ with ranges.
+
- The scripts or crontab entries in these directories should
+ The scripts or crontab entries in these directories should
check if all necessary programs are installed before they
try to execute them. Otherwise, problems will arise when a
package was removed but not purged since configuration files
- are kept on the system in this situation.
+ are kept on the system in this situation.
+
+
+
+ Any cron daemon must provide
+ /usr/bin/crontab and support normal
+ crontab entries as specified in POSIX. The daemon
+ must also support names for days and months, ranges, and
+ step values. It has to support /etc/crontab,
+ and correctly execute the scripts in
+ /etc/cron.d. The daemon must also correctly
+ execute scripts in
+ /etc/cron.{hourly,daily,weekly,monthly}.
+