Bitcoind.exe as a service

From wiki.electroncash.de
Jump to navigation Jump to search
  • Download Bitcoin Cash Node, Bitcoin Unlimited or other bitcoind.exe
  • Create a data directory for bitcoind.exe
  • Create a configuration file bitcoin.conf for bitcoind
  • Download nssm.exe from https://nssm.cc/download
  • Unpack nssm.exe
  • Open cmd.exe
  • cmd.exe: cd Path\To\nssm
  • cmd.exe: nssm.exe install bitcoind-service
  • Set path to bitcoind.exe and the argument -conf=C:\your\bitcoin.conf -datadir=C:\your\datadir

Nssm1.jpg

  • Set Shutdown options

Nssm2.jpg

  • Set Exit actions

Nssm3.jpg

  • Set a name and description
  • Set startup type: Automatic (Delayed Start)

Nssm4.jpg

  • Go to "Log on"-tab and enter a username and password
  • Install the service
  • Now you can start the service in cmd.exe with: nssm.exe start bitcoind-service