Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Fix lnd safe shutdown. #1134

Closed
wants to merge 1 commit into from
Closed

Fix lnd safe shutdown. #1134

wants to merge 1 commit into from

Conversation

valentinewallace
Copy link
Contributor

@valentinewallace valentinewallace commented Jun 3, 2019

lnd needs to be able to shutdown fully, and currently because it's a child process
of the main node process, it is killed when the app is killed and isn't given a
chance to fully tear down. Now, we start lnd as a detached process that can die
at its own pace when the app is closed.

A potential downside is that the lnd logs no longer appear alongside the app logs.
However, the lnd logs are still accessible in the app's data directory.

Depends on #1136. Closes #802.

lnd needs to be able to shutdown fully, and currently because it's a child process
of the main node process, it is killed when the app is killed and isn't given a
chance to fully tear down. Now, we start lnd as a detached process that can die
at its own pace when the app is closed.

A potential downside is that the lnd logs no longer appear alongside the app logs.
However, the lnd logs are still accessible in the app's data directory.
@valentinewallace valentinewallace changed the title [WIP] Fix lnd safe shutdown. Fix lnd safe shutdown. Jun 4, 2019
@valentinewallace valentinewallace deleted the dev/safe-shutdown branch September 7, 2019 01:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure graceful shutdown of lnd before electron quits
1 participant