community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728848 - /comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh
Date Sat, 06 Feb 2016 15:18:37 GMT
Author: sebb
Date: Sat Feb  6 15:18:37 2016
New Revision: 1728848

URL: http://svn.apache.org/viewvc?rev=1728848&view=rev
Log:
Add restart option for local interactive use

Modified:
    comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh

Modified: comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh?rev=1728848&r1=1728847&r2=1728848&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh (original)
+++ comdev/projects.apache.org/scripts/cronjobs/pubsubber.sh Sat Feb  6 15:18:37 2016
@@ -12,6 +12,11 @@ echo '>>>'
 echo Starting $SCRIPT at $(date)
 export
 
+if [ "$1" = 'restart' ]
+then
+    python3 -u $SCRIPT stop
+fi
+
 ERRTEE=1 LOGFILE=$LOGDIR/${BASE}_daemon.log python3 -u $SCRIPT start \
    comdev/projects.apache.org /var/www/projects.apache.org/ \
    comdev/reporter.apache.org /var/www/reporter.apache.org/



Mime
View raw message