Gracefully stop daemon?

+2 votes
Is there a preferred way to graceful shutdown a multichain daemon? When I've been doing my testing, I've just been finding the process ID using `ps aux | grep multichain` and killing the process from the command line. Is there a better, more graceful way to do this?

Thanks.
asked Aug 7, 2016 by woes

2 Answers

+1 vote

Yes, issue the stop API command - that's a much better way!

answered Aug 7, 2016 by MultiChain
+1 vote

you can use the command-line utility to stop
multichain-cli <chainname> stop

example :
$multichain-cli mchain -datadir=~/chaindir/  stop
{"method":"stop","params":[],"id":1,"chain_name":"mchain"}

MultiChain server stopping
$

 

answered Aug 10, 2016 by sanmadhavan
...