i am calling getenv() in my C++ code
If I call C++ executable directly then getenv() it reads the value correctly
However if I call the executable from within /etc/init.d/myDaemon
"myDaemon " then calls C++ executable, in this case getenv() does not read the value.
I have to manually set the env variable in /etc/init.d/my.exe in order my C++ executable to read it.
not sure why it behaves this way