[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] removals, crontab



add generation of removals-full.txt, doesnt need to be in my own
crontab.
also add the crontab into VCS, even though crontab is not yet
automagically updated from VCS.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 config/debian/cron.hourly |    7 ++++++-
 config/debian/crontab     |   18 ++++++++++++++++++
 web/index.html            |    1 +
 3 files changed, 25 insertions(+), 1 deletions(-)
 create mode 100644 config/debian/crontab

diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly
index 4dab8d8..3345237 100755
--- a/config/debian/cron.hourly
+++ b/config/debian/cron.hourly
@@ -4,15 +4,20 @@
 
 set -e
 set -u
+
 export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
 
 dak import-users-from-passwd
 dak queue-report -n > $webdir/new.html
-# We used to have accepted in here, but it doesn't exist in that form any more
 dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates
 dak show-deferred > ${webdir}/deferred.html
 dak show-new > /dev/null
+
+cd $webdir
+cat removals-20*.txt > removals-full.txt
+cat removals.txt >> removals-full.txt
+
 $base/dak/tools/queue_rss.py -q $queuedir/new -o $webdir/rss/ -d $base/misc -l $base/log/
 $base/dak/tools/removals.pl > $webdir/rss/removals.rss
 
diff --git a/config/debian/crontab b/config/debian/crontab
new file mode 100644
index 0000000..f7f6812
--- /dev/null
+++ b/config/debian/crontab
@@ -0,0 +1,18 @@
+MAILTO=cron@ftp-master.debian.org
+PATH=/usr/local/bin:/usr/bin:/bin
+# m        h          dom mon dow command
+2,17,32,47 *          *   *   *   /srv/ftp.debian.org/dak/config/debian/cron.unchecked
+0          *          *   *   *   /srv/ftp.debian.org/dak/config/debian/cron.hourly
+52         1,7,13,19  *   *   *   /srv/ftp.debian.org/dak/config/debian/cron.dinstall
+#### And an alternate line, for the times the release team wants it half an hour late.
+####22         2,9,14,20  *   *   *   /srv/ftp.debian.org/dak/config/debian/cron.dinstall
+0          12         *   *   0   /srv/ftp.debian.org/dak/config/debian/cron.weekly
+6          0          1   *   *   /srv/ftp.debian.org/dak/config/debian/cron.monthly
+@reboot                           /srv/ftp.debian.org/dak/config/debian/cron.reboot
+
+0          0          *   *   *   crontab -l > ~/crontab.out
+
+# We do like our queued and make sure it will always be there.
+# Luckily it checks itself and doesn't start if it already runs
+@reboot /srv/queued/debianqueued-0.9/debianqueued
+*/10        *          *   *   *   /srv/queued/debianqueued-0.9/debianqueued 2>/dev/null
diff --git a/web/index.html b/web/index.html
index 32f2f82..e0d6a10 100644
--- a/web/index.html
+++ b/web/index.html
@@ -153,6 +153,7 @@
                 <li><a href="removals-2006.txt">log of removals for 2006</a></li>
                 <li><a href="removals-2007.txt">log of removals for 2007</a></li>
                 <li><a href="removals-2008.txt">log of removals for 2008</a></li>
+                <li><a href="removals-2008.txt">log of removals for 2009</a></li>
             </ul>
 		<p>
 			Additionally we provide a <a href="removals-full.txt">full
-- 
1.6.5


Reply to: