Skip to content

Commit

Permalink
Add -r option to ionotifywait in docker entrypoint
Browse files Browse the repository at this point in the history
Before this, docker image will never detects that
`lightning-rpc` was created if it is running in regtest
or testnet, because the file will be created under
subfolder for each network name.
By recursively checking the file creation, now docker
can be run in any network configuration.
  • Loading branch information
joemphilips committed Jul 5, 2020
1 parent 7981f4c commit 879830a
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 @@ -8,7 +8,7 @@ if [ "$EXPOSE_TCP" == "true" ]; then

echo "C-Lightning starting"
while read -r i; do if [ "$i" = "lightning-rpc" ]; then break; fi; done \
< <(inotifywait -e create,open --format '%f' --quiet "$LIGHTNINGD_DATA" --monitor)
< <(inotifywait -r -e create,open --format '%f' --quiet "$LIGHTNINGD_DATA" --monitor)
echo "C-Lightning started"
echo "C-Lightning started, RPC available on port $LIGHTNINGD_RPC_PORT"

Expand Down

0 comments on commit 879830a

Please sign in to comment.