community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1835567 - /comdev/reporter.apache.org/trunk/scripts/scandist.sh
Date Tue, 10 Jul 2018 15:16:58 GMT
Author: sebb
Date: Tue Jul 10 15:16:58 2018
New Revision: 1835567

URL: http://svn.apache.org/viewvc?rev=1835567&view=rev
Log:
Allow for scandist to be stopped

Modified:
    comdev/reporter.apache.org/trunk/scripts/scandist.sh

Modified: comdev/reporter.apache.org/trunk/scripts/scandist.sh
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.sh?rev=1835567&r1=1835566&r2=1835567&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.sh (original)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.sh Tue Jul 10 15:16:58 2018
@@ -17,7 +17,13 @@ then
     python3 -u $SCRIPT stop
 fi
 
-LOGFILE=$LOGDIR/${BASE}_${YYMM}_daemon.log python3 -u $SCRIPT start
+if [ "$1" = 'stop' ]
+then
+    python3 -u $SCRIPT stop
+    echo "Remember to start scandist again" >&2
+else
+    LOGFILE=$LOGDIR/${BASE}_${YYMM}_daemon.log python3 -u $SCRIPT start
+fi
 
 echo Completed $SCRIPT at $(date)
 echo '<<<'



Mime
View raw message