Author

Topic: request: -server -no-detach (or -nogui) option (Read 7697 times)

full member
Activity: 158
Merit: 100
August 10, 2010, 04:54:54 AM
#4
There is bitcoind, the headless client, which can be used as a server. Or you mean "make something like 'if bitcoind crashes, restart it automatically?'"?

He asks for a option for a bitcoind to not fork upon execution and not try to daemonize itself. Believe that or not, daemonizing feature is external to almost any application on UNIX.
Applications that always daemonize require ugly hacks, like that described here http://cr.yp.to/daemontools/fghack.html to run them in more manageable way, than just manually from a command line.

Use case: restart bitcoind instantly as soon as it or the whole system crashes (and reboots).
full member
Activity: 210
Merit: 100
There is bitcoind, the headless client, which can be used as a server. Or you mean "make something like 'if bitcoind crashes, restart it automatically?'"?
full member
Activity: 158
Merit: 100
Double that!

Let the sysadmin decide whether to detach the process or not.
man nohup
will save you a lot of code!
sr. member
Activity: 350
Merit: 250
probiwon.com
This option can be useful when you start the server from inittab with respawn option, to be sure that server works, even if a bug or OOM killer from kernel will force server to crash.

Just to ensure continuity of customer service
Jump to: