From 0e67d75db094047664a06f5228c50ebc1cd4008b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Mon, 2 Nov 2009 08:16:07 +0000 Subject: [PATCH] Add patches for review. --- contrib.patch | 13 +++++++++++++ dailyjobs | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 contrib.patch create mode 100644 dailyjobs diff --git a/contrib.patch b/contrib.patch new file mode 100644 index 0000000..55e69c4 --- /dev/null +++ b/contrib.patch @@ -0,0 +1,13 @@ +diff -urN cronie-1.4.2/contrib.old/0anacron cronie-1.4.2/contrib/0anacron +--- cronie-1.4.2/contrib.old/0anacron 2009-09-25 08:23:18.000000000 +0200 ++++ cronie-1.4.2/contrib/0anacron 2009-10-30 17:34:28.369959197 +0100 +@@ -1,4 +1,9 @@ + #!/bin/bash ++# in case nonanacron is installed ++if [! -x /etc/cron.daily/dailyjob ]; then ++ exit 0; ++fi ++ + #in case file doesn't exist + if test -x /var/spool/anacron/cron.daily; then + day=`cat /var/spool/anacron/cron.daily` diff --git a/dailyjobs b/dailyjobs new file mode 100644 index 0000000..b60ab2d --- /dev/null +++ b/dailyjobs @@ -0,0 +1,10 @@ +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# run-parts +01 * * * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.hourly +02 4 * * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.daily +22 4 * * 0 root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.weekly +42 4 1 * * root [! -f /etc/cron.daily/0anacron] && run-parts /etc/cron.monthly