Bitcoin Forum
December 05, 2016, 04:40:07 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind: graceful termination?  (Read 4005 times)
Proofer
Sr. Member
****
Offline Offline

Activity: 251


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?
1480912807
Hero Member
*
Offline Offline

Posts: 1480912807

View Profile Personal Message (Offline)

Ignore
1480912807
Reply with quote  #2

1480912807
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480912807
Hero Member
*
Offline Offline

Posts: 1480912807

View Profile Personal Message (Offline)

Ignore
1480912807
Reply with quote  #2

1480912807
Report to moderator
2112
Legendary
*
Offline Offline

Activity: 1708



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
Sr. Member
****
Offline Offline

Activity: 251


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!