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.
_______________________________________________
Catalog-SIG mailing list
Catalog-SIG@python.org
http://mail.python.org/mailman/listinfo/catalog-sig

Reply via email to