Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: nelisky on September 06, 2010, 09:44:06 PM



Title: bitcoind as daemon in OSX
Post by: nelisky on September 06, 2010, 09:44:06 PM
I've been getting this from the start, and it is only a mild nuisance as I develop in OSX but then deploy on linux.

Anyway, the bitcoind process doesn't daemonize itself on my system, OSX 10.6, not with nor without -daemon. I can background it with '&' or ctrl-z bg, and it works correctly.


Title: Re: bitcoind as daemon in OSX
Post by: satoshi on September 06, 2010, 09:52:45 PM
Can you build?

Try changing line 78 of init.cpp from:
#ifdef __WXGTK__

to:
#ifndef __WXMSW__

If that works, I'll change the source.  It should work.


Title: Re: bitcoind as daemon in OSX
Post by: nelisky on September 06, 2010, 10:14:25 PM
Yep, that did the trick. Thank you.

Now I just need you to include the getblock and listtransactions patches and I'm a happy camper. If you still feel strongly against these, I just need parts of them, really:
- From getblock: A way to extract the hash signature from a specific block (which I use in the lottery)
- From listtransactions: Well, I need everything there, really, but mostly for housekeeping as I need a way of quickly getting a log of transactions. But not all information is important, only the address (in or out, depending on credit or debit) the type and the confirmation count. I also like to be able to see blocks generated before they mature, but that's not that important.