Post
Topic
Board Development & Technical Discussion
Re: [Guide] FULL NODE OpenSUSE 15.3: bitcoind + electrs + c-lightning + RTL
by
n0nce
on 19/09/2022, 13:50:42 UTC
I have a question. How does lightning daemon works normally when I've renamed the lightning directory? (lightning is the v0.11.2 directory, lightning2 is the old v0.10.2 directory which is running at the moment)

What binary does it run when I execute lightningd?

For location either of these:
Code:
whereis lightningd
which lightningd

For version:
Code:
lightningd --version

Correct; sudo make install actually just copies the binary you just compiled into a default location on your PATH, such as /usr/local/bin/.
If there's another binary there with the same name, it is indeed replaced.

You could work around that by either renaming the old binary before sudo make install, such that it's not overwritten.
Or you could also start lightningd directly from the build directory.

Code:
bitcoin@localhost:~/lightning> ./lightningd/lightningd --version
v0.11.2