Increase timeout, and commit some previously uncommitted updates following move to...
authorDave Page <dpage@pgadmin.org>
Thu, 11 Jun 2009 12:08:16 +0000 (12:08 +0000)
committerDave Page <dpage@pgadmin.org>
Thu, 11 Jun 2009 12:08:16 +0000 (12:08 +0000)
git-svn-id: https://pgweb.postgresql.org/svn/trunk@2508 8f5c7a92-453e-0410-a47f-ad33c8a6b003

automirror.sh

index cec3755f69ef4150b7a51fb943bab80549668b48..3948f5910e52c1bffa08c7cecc09e9892df85367 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # Run the automirror script with a timeout (in seconds)
-TIMEOUT=120
+TIMEOUT=180
 MAILREPORT="sysadmin-reports@postgresql.org"
 
 cd /usr/local/automirror/automirror
@@ -16,7 +16,13 @@ if [ ! $? = 0 ]; then
    exit
 fi
 
+sudo /usr/sbin/rndc reload mirrors.postgresql.org
+if [ ! $? = 0 ]; then
+       echo "failed to reload mirrors.postgresql.org zone" | /bin/mail -s "automirror failure report" $MAILREPORT
+       exit
+fi
 kill ${BG2} >/dev/null 2>&1
+
 sudo /usr/sbin/rndc reload mirrors.postgresql.org
 if [ ! $? = 0 ]; then
        echo "failed to reload mirrors.postgresql.org zone" | /bin/mail -s "automirror failure report" $MAILREPORT