Author

Topic: Most graceful way to close bitcoin client (Read 856 times)

full member
Activity: 134
Merit: 102
August 09, 2011, 11:06:11 PM
#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".
full member
Activity: 224
Merit: 100
August 09, 2011, 10:31:27 PM
#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?
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
August 09, 2011, 01:54:19 PM
#3
You know the client has a command to backup the wallet, right?
member
Activity: 224
Merit: 10
August 09, 2011, 01:50:37 PM
#2
kill should be fine.
full member
Activity: 224
Merit: 100
August 09, 2011, 01: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.
Jump to: