Running node as a service

+1 vote
Hey all,

During development I find it a bit frustrating having to launch the main node everytime I want to do something.

 

I tried creating a service of it by placing "multichaind examplechainname -daemon" into a bat file and then create service by running "sc create examplechainname binpath= "C:\MultiChain\chain1.bat\"  ".

But this doesn't work, the service is created succesfully, but when I try to start it it immediately gives a egeneric error. Does anyone have experience with this?

 

Thanks in advance,
asked Apr 13, 2018 by silox

1 Answer

+1 vote
Can you explain why you're not just leaving the node running? That is usually how MultiChain is used.
answered Apr 15, 2018 by MultiChain
Mainly the risk that I accidentally close the command window and then the entire network stops.
Understood. You might find this page helpful for general guidance on running Windows commands (like multichaind) in the background:

https://superuser.com/questions/198525/how-can-i-execute-a-windows-command-line-in-background
...