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:
parent
aab0a565d3
commit
8488d0620f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue