]> git.deb.at Git - deb/packages.git/commitdiff
Use a locktimeout
authorJoerg Jaspert <joerg@debian.org>
Mon, 13 Jul 2009 12:53:27 +0000 (14:53 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 13 Jul 2009 12:53:27 +0000 (14:53 +0200)
bin/create_mirror

index e9cdf05ef7b2e8e703771115e9f4399723dd3f73..612bd2610599a9e6825a57ca1f0789c786cc488e 100755 (executable)
@@ -12,7 +12,7 @@ STAMP=$(date "+%Y%m%d%H%M")
 new="$mirror/$STAMP"
 mkdir $new
 
-if lockfile -! -r2 -300 "$mirror/mirror.lock"
+if lockfile -! -l 3600 -r2 -300 "$mirror/mirror.lock"
 then
     echo "couldn't aquire mirror.lock in due time"
     exit 1;