Running Bitcoind as a service on windows 10

2

So I am trying to run bitcoin daemon as a service on windows 10, so I don't have to keep starting it.

I have tried the following command:

sc create BitcoinServer binpath= "C:\Program Files\Bitcoin\daemon\bitcoind.exe -regetest" start=auto 

Which creates a service, but when I try to start that, I get an error:

enter image description here

Is there any way to create a bitcoind regetest service?

Nate

Posted 2017-10-25T21:29:18.103

Reputation: 31

Answers

0

I think you need to add -daemon to your command in order for this to work. Also, you have -regetest in your command which implies that you want to use the Regression Test network (regtest). Besides the fact that you have spelled it incorrectly (it should be -regtest), regtest is not the same as mainnet (the main Bitcoin network) and I don't think that is necessarily what you want to do. Because you have spelled it incorrectly, you will be using the mainnet.

Andrew Chow

Posted 2017-10-25T21:29:18.103

Reputation: 40 910

That was a typo. Also, for some reason, I cannot run -daemon "-daemon is not allowed on this host machine"Nate 2017-11-01T13:57:04.370

1

Hmm, that's strange. Have you also tried the instructions here: https://bitcoin.org/en/full-node#windows-10 (in particular the "Start Your Node At Boot" section)?

Andrew Chow 2017-11-01T18:25:51.513

1Error: -daemon is not supported on this operating systemDmitry Gusarov 2018-05-31T09:11:19.500