[Catalog-sig] pypi mirrors in bad shape

Donald Stufft donald.stufft at gmail.com
Wed Jan 16 16:41:00 CET 2013


On Wednesday, January 16, 2013 at 4:43 AM, Jannis Leidel wrote:
> The mirror script was hanging on d, too. Since I've had to fix the mirror every other month now I wonder if the pep381client is up to the task. Does anyone have recommendations for fixing the situation? Is there an easy way to monitor the client and kill it if it runs longer than x?
> 
> 

Should be able to use the timeout command.

timeout -k HARD_LIMIT SOFT_LIMIT /path/pep381client/pep381run -q /var/pypi

I haven't actually tested this but It should work, IIRC it'll send a SIGTERM after
SOFT_LIMIT and a SIGQUIT after HARD_LIMIT.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/catalog-sig/attachments/20130116/ab850816/attachment.html>


More information about the Catalog-SIG mailing list