community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1710910 - /comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh
Date Tue, 27 Oct 2015 23:56:03 GMT
Author: sebb
Date: Tue Oct 27 23:56:03 2015
New Revision: 1710910

URL: http://svn.apache.org/viewvc?rev=1710910&view=rev
Log:
Try logging pubsubber output

Added:
    comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh   (with props)

Added: comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh?rev=1710910&view=auto
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh (added)
+++ comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh Tue Oct 27 23:56:03 2015
@@ -0,0 +1,20 @@
+SCRIPT=pubsubber.py
+
+LOGDIR=/var/log/www-data
+
+BASE=$(basename $SCRIPT .py)
+
+YYMM=$(date '+%Y-%m')
+
+exec  >>${LOGDIR}/${BASE}_${YYMM}.log
+echo
+echo '>>>'
+echo Starting $SCRIPT at $(date)
+export
+
+ERRTEE=1 python3 -u $SCRIPT foreground \
+   comdev/projects.apache.org /var/www/projects.apache.org/ \
+   comdev/reporter.apache.org /var/www/reporter.apache.org/
+
+echo Completed $SCRIPT at $(date)
+echo '<<<'

Propchange: comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message