On May 11, 10:14 pm, Keith Rarick <[email protected]> wrote:
> On Mon, May 11, 2009 at 9:14 AM, Drew Taylor <[email protected]> 
> wrote:
> > I'm in need of a job queue, and am evaluating beanstalkd. Problem is,
> > detach mode simply isn't working on my FreeBSD 6.3 box. It immediately
> > dies with no messaging whatsoever, and no beanstalkd process.
>
> I don't have ready access to a FreeBSD box, but I'll set up a VM if necessary.
>
> For now, can you try deleting or commenting out most of the daemonize
> function in beanstalkd.c? Leave only the last line. It should go from
> this:
>
> static void
> daemonize()
> {
>     chdir("/");
>     nullfd(0, O_RDONLY);
>     nullfd(1, O_WRONLY);
>     nullfd(2, O_WRONLY);
>     umask(0);
>     dfork();
>     setsid();
>     dfork();
>
> }
>
> To this:
>
> static void
> daemonize()
> {
>     dfork();
>
> }
>
> This change should let you see error messages that happen after the
> fork. If you post those messages it'll give me a clue what is going
> on.

It's a bit more helpful now:

r...@skidoo-bsd # /usr/local/bin/beanstalkd -d -u nobody
r...@skidoo-bsd # [warn] kevent: Bad file descriptor
/usr/local/bin/beanstalkd: beanstalkd.c:290 in main: got here for some
reason

I'm running libevent 1.4.10 if that helps.

BTW, I have to use the 1.3 release because of the lack of
posix_fallocate on FreeBSD.

Drew

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to