[Catalyst] --background clobbers log
Seth Daniel
catalyst at sethdaniel.org
Wed Feb 8 19:30:04 GMT 2012
On Wed, Feb 08, 2012 at 09:39:14AM -0800, Seth Daniel wrote:
> On Wed, Feb 08, 2012 at 08:24:03AM +0000, Tomas Doran wrote:
> >
> > On 7 Feb 2012, at 23:55, Seth Daniel wrote:
> >>
> >> Anybody else seen this or have any idea what's going on? I'm
> >> currently
> >> working on a small program that demonstrates this but it may be a day
> >> before I can really get to that.
> >>
> >> Thanks for any assistance.
> >
> >
> > I've seen something similar reported on irc (but an actual bug report -
> > or demonstration never followed through).
> >
> > I can guess what's going on here - which is that --background is closing
> > file handles you don't want to to close, this would be the fault of
> > MooseX::Demonize (or our use thereof).
> >
> > This is a core bug (not a bug in the starman script or log4perl) - even
> > if you don't get any further, can you report an RT so it doesn't get
> > lost?
>
> https://rt.cpan.org/Public/Bug/Display.html?id=74786
>
> I amended my initial report to this list by mentioning I am using
> MooseX::Daemonize 0.13.
I've attached a small tarball to this e-mail. From the root of the dist
run:
$ start_app --background --pidfile /tmp/app-server.pid
Once it has started you can
$ wget http://localhost:3000
You can then see in app-server.pid that logging is now going there and
not to app-server.log.
If I figure out how I will append this to the RT ticket as well.
--
seth /\ sethdaniel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app-background-bug.tar
Type: application/x-tar
Size: 10240 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120208/aa5363a7/app-background-bug.tar
More information about the Catalyst
mailing list