Tunnelsats / tunnelsats

Tunnel⚡Sats: Pre-configured VPN for Lightning Nodes
https://tunnelsats.github.io/tunnelsats/
MIT License
34 stars 9 forks source link

setupv2.sh bug: misleading cln.service message #41

Closed kobiebotha closed 2 years ago

kobiebotha commented 2 years ago

My setup:

Steps to reproduce:

Result:

The below message is printed

Looking for systemd service...
> /etc/systemd/system/lightningd.service / /etc/systemd/system/cln.service not found. Setup aborted.

However, as you can see on line 139 of setupv2.sh, it's only checking for /etc/systemd/system/lightningd.service <-- doesn't check for cln.service as per the error message printed on stdout

blckbx commented 2 years ago

Hello @kobiebotha, yes, you're right and thanks for reporting!

Older version of RaspiBolt's CLN guide created a systemd service called cln.service. This has been changed recently to comply to standard naming convention of core-lightning. The service has been renamed to lightningd.service. -> https://raspibolt.org/guide/bonus/lightning/cln.html

A cleanup of the scripts is in the making, now that RaspiBolt merged the naming branch. Unfortunately to fully comply, users need to change the CLN installation to lightningd. For RaspiBolt this only requires a renaming of the systemd.service, iirc, but might have to check again.

Quick check: