I have a setup with several directories where I can chroot and start the same daemon from. I'd like to be able to tell from which of my multiple directories I started the daemon.
I'd like to find it out by using commands only from outside the chrooted environment, and without having to stop the daemon.
Clarification: When I say "the same daemon" what I mean is that the contents of those directories is identical, the only difference is their path in the host environment.