Bitcoin Forum
March 28, 2024, 11:13:08 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Most graceful way to close bitcoin client  (Read 843 times)
jostmey (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile WWW
August 09, 2011, 06:41:30 PM
 #1

What is the most graceful way to close the bitcoin client software from a shell script?

I ask because I always want to leave the client running in the background, but periodically I will need to automatically close the program and backup the wallet file.

Search Bitcoin
Discover the bitcoin economy
1711667588
Hero Member
*
Offline Offline

Posts: 1711667588

View Profile Personal Message (Offline)

Ignore
1711667588
Reply with quote  #2

1711667588
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jimbo77
Member
**
Offline Offline

Activity: 224
Merit: 10


View Profile
August 09, 2011, 06:50:37 PM
 #2

kill should be fine.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
August 09, 2011, 06:54:19 PM
 #3

You know the client has a command to backup the wallet, right?

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
jostmey (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile WWW
August 10, 2011, 03:31:27 AM
 #4

You know the client has a command to backup the wallet, right?


How do I call the command to backup the wallet file from an active process? And isn't the backup command only for the daemon, or is it for the GUI version too?

Search Bitcoin
Discover the bitcoin economy
EricJ2190
Full Member
***
Offline Offline

Activity: 134
Merit: 102


View Profile
August 10, 2011, 04:06:11 AM
 #5

You know the client has a command to backup the wallet, right?


How do I call the command to backup the wallet file from an active process? And isn't the backup command only for the daemon, or is it for the GUI version too?

The GUI will accept commands too if run with the "-server" option or if you specify "server=1" in bitcoin.conf. You can then use the "backupwallet" JSON-RPC command to backup the wallet. From the command-line, that would be "bitcoind backupwallet /output/file".
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!