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
This commit is contained in:
Henrik Levkowetz 2016-04-08 17:32:18 +00:00
parent aab0a565d3
commit 8488d0620f
3 changed files with 10 additions and 8 deletions

View file

@ -1,9 +1,12 @@
#!/bin/bash #!/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 DTDIR=/a/www/ietf-datatracker/web
cd $DTDIR/ cd $DTDIR/
# Set up the virtual environment # Set up the virtual environment

View file

@ -1,8 +1,10 @@
# -*- indent-with-tabs: 0 -*- # -*- indent-with-tabs: 0 -*-
# #
# Update the local copies of the IETF rfc and draft repositories # 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
# Every hour # 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 PATH=/sbin:/usr/sbin:/bin:/usr/bin

View file

@ -45,9 +45,6 @@ ADMINS = (
ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", ] 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 # Server name of the tools server
TOOLS_SERVER = 'tools.' + IETF_DOMAIN TOOLS_SERVER = 'tools.' + IETF_DOMAIN