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