lnrpc+rpc+lnd: add new Stop command for gracefully shutting down lnd

This commit adds simple non-blocking stop command to lncli, with an
appropriate proto update and implementation within the rpcserver.  When
invoked the interrupt handler routine in signal.go with begin the graceful
shutdown of lnd.
This commit is contained in:
halseth
2017-05-11 22:55:56 +01:00
committed by Olaoluwa Osuntokun
parent 2a602b6d61
commit aa4e166539
7 changed files with 422 additions and 312 deletions

View File

@@ -79,6 +79,7 @@ func main() {
debugLevelCommand,
decodePayReqComamnd,
listChainTxnsCommand,
stopCommand,
}
if err := app.Run(os.Args); err != nil {