community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1738392 - /comdev/reporter.apache.org/trunk/scripts/scandist.sh
Date Sat, 09 Apr 2016 22:50:10 GMT
Author: sebb
Date: Sat Apr  9 22:50:10 2016
New Revision: 1738392

URL: http://svn.apache.org/viewvc?rev=1738392&view=rev
Log:
Prepare to move to scandist daemon

Added:
    comdev/reporter.apache.org/trunk/scripts/scandist.sh   (with props)

Added: comdev/reporter.apache.org/trunk/scripts/scandist.sh
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.sh?rev=1738392&view=auto
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.sh (added)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.sh Sat Apr  9 22:50:10 2016
@@ -0,0 +1,23 @@
+SCRIPT=scandist.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
+
+if [ "$1" = 'restart' ]
+then
+    python3 -u $SCRIPT stop
+fi
+
+LOGFILE=$LOGDIR/${BASE}_daemon.log python3 -u $SCRIPT start
+
+echo Completed $SCRIPT at $(date)
+echo '<<<'

Propchange: comdev/reporter.apache.org/trunk/scripts/scandist.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: comdev/reporter.apache.org/trunk/scripts/scandist.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message