2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-15 00:15:05 +00:00
lnbook/code/docker/lnd/logtail.sh
2020-06-17 13:43:37 -04:00

9 lines
214 B
Bash

#!/bin/bash
set -Eeuo pipefail
# Show LND log from beginning and follow
tail -n +1 -f /lnd/logs/bitcoin/regtest/lnd.log || true
# When tail is interrupted, shutdown LND
lncli --lnddir=/lnd --network regtest stop