Bitcoin Forum
June 26, 2017, 05:36:50 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Most graceful way to close bitcoin client  (Read 716 times)
jostmey
Full Member
***
Offline Offline

Activity: 224



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

Posts: 1498498610

View Profile Personal Message (Offline)

Ignore
1498498610
Reply with quote  #2

1498498610
Report to moderator
Join the Crowdfunding Revolution ►► FundYourselfNow.com ◄◄ Crowdsale with
attractive rewards
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1498498610
Hero Member
*
Offline Offline

Posts: 1498498610

View Profile Personal Message (Offline)

Ignore
1498498610
Reply with quote  #2

1498498610
Report to moderator
jimbo77
Member
**
Offline Offline

Activity: 78


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

kill should be fine.
JoelKatz
Legendary
*
Offline Offline

Activity: 1554


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
Full Member
***
Offline Offline

Activity: 224



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


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:  

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!