From 8488d0620f3053d87fb1490b3bbe075e024d3001 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 8 Apr 2016 17:32:18 +0000 Subject: [PATCH] Added a crontab file to be symlinked from /etc/cron.d/, and related scripts to be run from cron. Requires refactoring of CronRunner and NightRunner scripts before activation, to avoid duplicate runs. - Legacy-Id: 11114 --- bin/daily | 7 +++++-- etc/cron.d/datatracker | 8 +++++--- ietf/settings.py | 3 --- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/daily b/bin/daily index 3119ac162..d596978bf 100644 --- a/bin/daily +++ b/bin/daily @@ -1,9 +1,12 @@ #!/bin/bash -# Nightly datatracker jobs +# Nightly datatracker jobs. +# +# This script is expected to be triggered by cron from +# $DTDIR/etc/cron.d/datatracker which should be symlinked from +# /etc/cron.d/ DTDIR=/a/www/ietf-datatracker/web - cd $DTDIR/ # Set up the virtual environment diff --git a/etc/cron.d/datatracker b/etc/cron.d/datatracker index d24117a31..174ce297e 100644 --- a/etc/cron.d/datatracker +++ b/etc/cron.d/datatracker @@ -1,8 +1,10 @@ # -*- indent-with-tabs: 0 -*- # -# Update the local copies of the IETF rfc and draft repositories -# -# Every hour +# This file controls the datatracker-related cronjobs. It's intended to be +# symlinked into /etc/init.d/ . It is a crontab in order to be able to add +# actions which don't fit into the daily or hourly pattern. It, and daily +# and hourly scripts it triggers, are part of the datatracker repository in +# order to handle cronjob changes that go together with code changes well. PATH=/sbin:/usr/sbin:/bin:/usr/bin diff --git a/ietf/settings.py b/ietf/settings.py index ed9c4c414..aa50ce644 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -45,9 +45,6 @@ ADMINS = ( ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", ] -# This is used to construct the path to manage.py, in order to run management -# commands, for instance in etc/cron.d/datatracker -DEPLOYMENT_DIR = '/a/www/ietf-datatracker' # Server name of the tools server TOOLS_SERVER = 'tools.' + IETF_DOMAIN