Skip to content

Commit 8488d06

Browse files
committed
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
1 parent aab0a56 commit 8488d06

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

bin/daily

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
22

3-
# Nightly datatracker jobs
3+
# Nightly datatracker jobs.
4+
#
5+
# This script is expected to be triggered by cron from
6+
# $DTDIR/etc/cron.d/datatracker which should be symlinked from
7+
# /etc/cron.d/
48

59
DTDIR=/a/www/ietf-datatracker/web
6-
710
cd $DTDIR/
811

912
# Set up the virtual environment

etc/cron.d/datatracker

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# -*- indent-with-tabs: 0 -*-
22
#
3-
# Update the local copies of the IETF rfc and draft repositories
4-
#
5-
# Every hour
3+
# This file controls the datatracker-related cronjobs. It's intended to be
4+
# symlinked into /etc/init.d/ . It is a crontab in order to be able to add
5+
# actions which don't fit into the daily or hourly pattern. It, and daily
6+
# and hourly scripts it triggers, are part of the datatracker repository in
7+
# order to handle cronjob changes that go together with code changes well.
68

79
PATH=/sbin:/usr/sbin:/bin:/usr/bin
810

ietf/settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545

4646
ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", ]
4747

48-
# This is used to construct the path to manage.py, in order to run management
49-
# commands, for instance in etc/cron.d/datatracker
50-
DEPLOYMENT_DIR = '/a/www/ietf-datatracker'
5148

5249
# Server name of the tools server
5350
TOOLS_SERVER = 'tools.' + IETF_DOMAIN

0 commit comments

Comments
 (0)