On 5/23/17 05:04, Albe Laurenz wrote:
> 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.
Yeah, one of the main points of the service program is that it clears
your environment.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services