From: Joerg Jaspert Date: Mon, 13 Jul 2009 12:53:27 +0000 (+0200) Subject: Use a locktimeout X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=d4f31eca5ac9e5d9b908ded4606cf50e3824ea0d;p=deb%2Fpackages.git Use a locktimeout --- diff --git a/bin/create_mirror b/bin/create_mirror index e9cdf05..612bd26 100755 --- a/bin/create_mirror +++ b/bin/create_mirror @@ -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;