<div><span style="color: rgb(160, 160, 168); ">On Wednesday, January 16, 2013 at 4:43 AM, Jannis Leidel wrote:</span></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>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?</div></div></div></span></blockquote><div>Should be able to use the timeout command.</div><div><br></div><div>timeout -k HARD_LIMIT SOFT_LIMIT /path/pep381client/pep381run -q /var/pypi</div><div><br></div><div>I haven't actually tested this but It should work, IIRC it'll send a SIGTERM after</div><div>SOFT_LIMIT and a SIGQUIT after HARD_LIMIT.</div>