pull down to refresh
Yes, i run a Bitcoin node and an LN node on a laptop (Ubuntu OS), which is on maybe 12 hours per day, and i open and close both nodes from terminals - closing the terminal stops the nodes, and i then shut down the laptop. On restarting i fire them both up again using the ./ command - Bitcoin first, and when that's synced, the LN node.
Not sure if you mean i could do something similar - would i have to use a command to close LND before shutting down the laptop, and would i have to also use a command to start it up again when the laptop is restarted ?
There's no need to run things in a terminal, best to run them as systemd units so if the laptop is running then they are running as background processes.
Lightning.Pub's installer actually sets these up for you. Depending how your current node is configured it may need some extra touch though as its really for fresh installs.
If you want, dump this into an LLM and ask for instructions how to set up your current LN node as a systemd unit: https://github.com/shocknet/Lightning.Pub/blob/master/scripts/start_services.sh
Is this your daily driver laptop and that's why its off 12 hours per day? The best lightning node for most people is a spare old laptop that can just sit in a closet or on a bookshelf online 24x7.
It's a spare laptop that i've been using to run a Bitcoin node for some years now - i added the LN node a couple of years ago to see if i could use it with the Bitcoin node and it all just worked (to my surprise) - maybe i've been lucky but i don't have problems with channels - my ACINQ channel is over 2 years old now - i don't route, it's for my use only, but i like to keep it switched off when i'm away from it to prevent interference from those around me where i'm living.
I'll take a look at the link and see if i can get anywhere with it - thx
Cool, you're most of the way there then.
Lightning.Pub doesn't work with ACINQ's node (phoenixd), but you can still add phoenixd to systemd to avoid the terminal jockeying.
(Also add bitcoind to systemd, then set the phoenixd systemd unit to be dependent on bitcoind. That will ensure bitcoind starts first. It's not really important that it's fully sync'd to the tip before phoenixd starts, given that its not getting so far behind it takes forever to catch-up)
Your channels are probably safe-ish since its just to the LSP and your online most of the time, it's when you have many channels to aggressive peers the risk really starts to creep in.
You mean shutting down the system it runs on? Pub just sits over LND and installs systemd services, so it'll start up / shut down with the system.
There's channel closure risk with any offline Lightning node, so I generally recommend that people who don't have the space or a spare laptop kicking around use a cheap VPS.