Bitcoin Forum
December 10, 2016, 10:57:49 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Most graceful way to close bitcoin client  (Read 673 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
1481367469
Hero Member
*
Offline Offline

Posts: 1481367469

View Profile Personal Message (Offline)

Ignore
1481367469
Reply with quote  #2

1481367469
Report to moderator
1481367469
Hero Member
*
Offline Offline

Posts: 1481367469

View Profile Personal Message (Offline)

Ignore
1481367469
Reply with quote  #2

1481367469
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
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: 1386


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.
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!