[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
This commit is contained in:
Nicolas Dorier 2018-12-20 13:18:51 +09:00 committed by Christian Decker
parent b155dbb316
commit f9f4ed8e11
1 changed files with 1 additions and 1 deletions

View File

@ -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