Sumeet Shukla wrote:
> The environment variable $LD_LIBRARY_PATH reflects if I use "/etc/init.d/postgresql-9.6
> restart" command but it does not reflect if I use "service postgresql-9.6 restart".
>
> I find it little weird since essentially both the commands are internally calling the same
> service file. Any insight on this would be appreciated.
From "man service":
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
Yours,
Laurenz Albe