Bitcoin Forum
May 05, 2024, 07:56:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind: graceful termination?  (Read 4182 times)
Proofer (OP)
Member
**
Offline Offline

Activity: 266
Merit: 36


View Profile
December 16, 2011, 04:07:11 AM
 #1

bitcoind 0.5.1, Mac OS 10.6.7

When I quit the GUI version, Bitcoin-Qt, it often takes quite a while for it to actually terminate.  I assume it's doing some kind of cleanup, perhaps related to network connections.

I don't see any bitcoind command to accomplish an orderly shutdown.  Is there gentler way than killing the process?
1714938987
Hero Member
*
Offline Offline

Posts: 1714938987

View Profile Personal Message (Offline)

Ignore
1714938987
Reply with quote  #2

1714938987
Report to moderator
1714938987
Hero Member
*
Offline Offline

Posts: 1714938987

View Profile Personal Message (Offline)

Ignore
1714938987
Reply with quote  #2

1714938987
Report to moderator
1714938987
Hero Member
*
Offline Offline

Posts: 1714938987

View Profile Personal Message (Offline)

Ignore
1714938987
Reply with quote  #2

1714938987
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



View Profile
December 16, 2011, 04:44:06 AM
 #2

use "bitcoind stop" or any equivalent through the JSON-RPC interface.

By the way most of the shutdown time is spent in the database logs cleanup. You can somewhat speed this up by defragmenting all the *.dat files. Significant further speed-up is achieved by the  reorganization of blkindex.dat: use db_dump & db_restore; just be careful to set the DB_CONFIG correctly.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
Proofer (OP)
Member
**
Offline Offline

Activity: 266
Merit: 36


View Profile
December 16, 2011, 04:57:26 AM
 #3

use "bitcoind stop" or any equivalent through the JSON-RPC interface.

By the way most of the shutdown time is spent in the database logs cleanup. You can somewhat speed this up by defragmenting all the *.dat files. Significant further speed-up is achieved by the  reorganization of blkindex.dat: use db_dump & db_restore; just be careful to set the DB_CONFIG correctly.

OK; thanks!

Meanwhile, for any newbies like me...

To get usage and options:
bitcoind -?   #whether bitcoind is running or not
To get a list of commands:
bitcoind help  #when bitcoind is running
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!