diff options
author | Dave Page | 2009-06-11 12:08:16 +0000 |
---|---|---|
committer | Dave Page | 2009-06-11 12:08:16 +0000 |
commit | 047f5f268dc877294658025707aa6fd611ac913f (patch) | |
tree | f5790fe5a5024a95a8370d70c34e3f40902c3709 | |
parent | 2a51b412181494193a5adccebc44476f3eddad85 (diff) |
Increase timeout, and commit some previously uncommitted updates following move to dominion.
git-svn-id: https://pgweb.postgresql.org/svn/trunk@2508 8f5c7a92-453e-0410-a47f-ad33c8a6b003
-rw-r--r-- | automirror.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/automirror.sh b/automirror.sh index cec3755..3948f59 100644 --- a/automirror.sh +++ b/automirror.sh @@ -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 |