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:
whereis lightningd
which lightningd
For version:
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.
bitcoin@localhost:~/lightning> ./lightningd/lightningd --version
v0.11.2