clightning: wait until the RPC socket appears
This fixes failures with spark-wallet which requires clightning RPC
This commit is contained in:
parent
60c732a6a1
commit
86167c6e6d
@ -106,6 +106,11 @@ in {
|
||||
then nix-bitcoin-services.allowTor
|
||||
else nix-bitcoin-services.allowAnyIP
|
||||
);
|
||||
# Wait until the rpc socket appears
|
||||
postStart = ''
|
||||
while read f; do [[ $f == lightning-rpc ]] && break; done \
|
||||
< <(${pkgs.inotifyTools}/bin/inotifywait --quiet --monitor -e create,moved_to --format '%f' '${cfg.dataDir}')
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user