mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 13:14:15 +03:00
Revert "clightning: don't cleanup socket on startup"
Also, add a detailed comment. Without this commit, clightning client services may fail to start due to clightning RPC connection failures.
This commit is contained in:
parent
29a32ac53b
commit
fc1466e743
@ -170,6 +170,11 @@ in {
|
||||
requires = [ "bitcoind.service" ];
|
||||
after = [ "bitcoind.service" ];
|
||||
preStart = ''
|
||||
# Remove an existing socket so that `postStart` can detect when when a new
|
||||
# socket has been created and clightning is ready to accept RPC connections.
|
||||
# This will no longer be needed when clightning supports systemd startup notifications.
|
||||
rm -f ${cfg.networkDir}/lightning-rpc
|
||||
|
||||
umask u=rw,g=r,o=
|
||||
{
|
||||
cat ${configFile}
|
||||
|
Loading…
Reference in New Issue
Block a user