[Catalyst] script/myapp_server -r Can't exec "/usr/bin/perl" every 3 or 4 restarts

Dave Rolsky autarch at urth.org
Fri May 1 05:12:08 GMT 2009


On Thu, 30 Apr 2009, Matt S Trout wrote:

> On Thu, Apr 30, 2009 at 02:44:05PM +0200, Erik Wasser wrote:
>> On Tuesday 28 April 2009, Matt S Trout wrote:
>>
>>> Two possibilities:
>>>
>>> (1) exec a $^X to print @INC to get the "normal" @INC
>>>
>>> (2) use $Config{arch} and /^5.\/ to strip off the extra ones.
>>>
>>> Thoughts?
>>
>> I think (1) is more bulletproof. I think a restart costs a lot of time
>> and an additional call of $^X doesn't matter here.
>
> I think I agree. Fancy having a go at a patch? I -still- don't use -r so
> I -still- can't really shake such a patch out in real world usage :)

My new restarter code avoids this issue entirely. It doesn't actually 
re-execute the initial script (which runs forever), it just restarts the 
web server piece (and reloads the app itself).


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/



More information about the Catalyst mailing list