[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please test security-tracker.debian.org



Florian Weimer wrote:

> * Florian Weimer:
> 
>> * Florian Weimer:
>>
>>> I plan to eventually install the version with HTTP invocation on
>>> soler.debian.org (for security-tracker.debian.org), using Apache's
>>> mod_proxy to redirect HTTP requests to the tracker_service.py process.
>>
>> <http://security-tracker.debin.org/> should now be working, including
>> automated database updates.
> 
> There seems to be an issue with dotfile locking ot actually achieving
> mutual exclusion. 8-( I really have no idea what's causing this.
> Here's the code:
> 
> root=/org/security-tracker.debian.org/website
> cd "$root/secure-testing"
> if dotlockfile -r 1  -l stamps/lock; then
>     trap "dotlockfile -u stamps/lock" 0
> else
>     exit 0
> fi
> 
> Any ideas?  Is there a better approach to locking from shell scripts?

Some qa cronjobs use lockfile(1), but on my personal scripts I usually use
ln -s $$ lock-file
That way you can even detect left-overs by using readlink.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



Reply to: