mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
[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:
committed by
Christian Decker
parent
b155dbb316
commit
f9f4ed8e11
@@ -15,5 +15,5 @@ if [ "$EXPOSE_TCP" == "true" ]; then
|
|||||||
socat "TCP4-listen:$LIGHTNINGD_RPC_PORT,fork,reuseaddr" "UNIX-CONNECT:$LIGHTNINGD_DATA/lightning-rpc" &
|
socat "TCP4-listen:$LIGHTNINGD_RPC_PORT,fork,reuseaddr" "UNIX-CONNECT:$LIGHTNINGD_DATA/lightning-rpc" &
|
||||||
fg %-
|
fg %-
|
||||||
else
|
else
|
||||||
lightningd "$@"
|
exec lightningd "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user