From f9f4ed8e1159112a391e45f9971a3d2da7842022 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Thu, 20 Dec 2018 13:18:51 +0900 Subject: [PATCH] [Docker] Make sure lightningd receive SIGTERM In conjunction to https://github.com/ElementsProject/lightning/pull/2172 this fix https://github.com/ElementsProject/lightning/issues/2074 if EXPOSE_TCP is false (which is the case in production) More info https://github.com/ElementsProject/lightning/pull/2172#issuecomment-447727668 --- tools/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker-entrypoint.sh b/tools/docker-entrypoint.sh index 47e5c8cc4970..de274ae16c4c 100755 --- a/tools/docker-entrypoint.sh +++ b/tools/docker-entrypoint.sh @@ -15,5 +15,5 @@ if [ "$EXPOSE_TCP" == "true" ]; then socat "TCP4-listen:$LIGHTNINGD_RPC_PORT,fork,reuseaddr" "UNIX-CONNECT:$LIGHTNINGD_DATA/lightning-rpc" & fg %- else - lightningd "$@" + exec lightningd "$@" fi