Skip to content

Commit

Permalink
[Docker] Make sure lightningd receive SIGTERM
Browse files Browse the repository at this point in the history
In conjunction to ElementsProject#2172 this fix ElementsProject#2074 if EXPOSE_TCP is false (which is the case in production)

More info ElementsProject#2172 (comment)
  • Loading branch information
NicolasDorier authored and cdecker committed Dec 29, 2018
1 parent b155dbb commit f9f4ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f9f4ed8

Please sign in to comment.