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:
@@ -170,6 +170,11 @@ in {
|
|||||||
requires = [ "bitcoind.service" ];
|
requires = [ "bitcoind.service" ];
|
||||||
after = [ "bitcoind.service" ];
|
after = [ "bitcoind.service" ];
|
||||||
preStart = ''
|
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=
|
umask u=rw,g=r,o=
|
||||||
{
|
{
|
||||||
cat ${configFile}
|
cat ${configFile}
|
||||||
|
|||||||
Reference in New Issue
Block a user