From ae63d9d5fe4331253b9f7ea75d7662aa4f7bc683 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 18 Jan 2021 15:38:45 +0100 Subject: [PATCH] doc: document how to shutdown LiT Fixes #171. --- doc/config-lnd-integrated.md | 9 +++++++++ doc/config-lnd-remote.md | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/doc/config-lnd-integrated.md b/doc/config-lnd-integrated.md index 864d660f..2c34bbbb 100644 --- a/doc/config-lnd-integrated.md +++ b/doc/config-lnd-integrated.md @@ -357,3 +357,12 @@ You can easily create an alias for this by adding the following line to your ```shell script alias lit-frcli="frcli --rpcserver=localhost:10009 --tlscertpath=~/.lnd/tls.cert --macaroonpath=~/.faraday/testnet/faraday.macaroon" ``` + +## Shutting down LiT + +In the integrated mode LiT can be shut down by stopping the integrated `lnd` +node: + +```shell +⛰ lncli stop +``` diff --git a/doc/config-lnd-remote.md b/doc/config-lnd-remote.md index 9ae06b48..ebc3461e 100644 --- a/doc/config-lnd-remote.md +++ b/doc/config-lnd-remote.md @@ -276,3 +276,15 @@ file: ```shell script alias lit-frcli="frcli --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert --macaroonpath=~/.faraday/testnet/faraday.macaroon" ``` + +## Shutting down LiT + +In the remote mode, there is no explicit command for stopping LiT yet. But a +clean shutdown can be achieved by either pressing ` + c` in the terminal +where LiT is running. Or, if LiT is running in the background, the following +command can be used to send an interrupt signal which will trigger the clean +shutdown: + +```shell +⛰ kill -s INT $(pidof litd) +```