community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1830494 - /comdev/projects.apache.org/trunk/scripts/cronjobs/pubsubber.sh
Date Sun, 29 Apr 2018 07:32:39 GMT
Author: sebb
Date: Sun Apr 29 07:32:38 2018
New Revision: 1830494

URL: http://svn.apache.org/viewvc?rev=1830494&view=rev
Log:
Also allow stop

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

Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/pubsubber.sh
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/cronjobs/pubsubber.sh?rev=1830494&r1=1830493&r2=1830494&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/pubsubber.sh (original)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/pubsubber.sh Sun Apr 29 07:32:38 2018
@@ -17,9 +17,15 @@ then
     python3 -u $SCRIPT stop
 fi
 
-ERRTEE=1 LOGFILE=$LOGDIR/${BASE}_${YYMM}_daemon.log python3 -u $SCRIPT start \
-   comdev/projects.apache.org /var/www/projects.apache.org/ \
-   comdev/reporter.apache.org /var/www/reporter.apache.org/
+if [ "$1" = 'stop' ]
+then
+    python3 -u $SCRIPT stop
+else
+    ERRTEE=1 LOGFILE=$LOGDIR/${BASE}_${YYMM}_daemon.log python3 -u $SCRIPT start \
+       comdev/projects.apache.org /var/www/projects.apache.org/ \
+       comdev/reporter.apache.org /var/www/reporter.apache.org/
+    echo "Remember to start pubsubber again" >&2
+fi
 
 echo Completed $SCRIPT at $(date)
 echo '<<<'



Mime
View raw message