Linux will unset LD_LIBRARY_PATH (as well as some other env variables) when you change users (decent explanation: http://superuser.com/questions/153420/why-does-my-ld-library-path-get-unset-when-using-screen-with-bash). The only way to get around this is to *not* change the user id between traffic_cop/manager/server. You can do this by setting the admin.user_id ( http://trafficserver.readthedocs.org/en/latest/reference/configuration/records.config.en.html?highlight=body%20factory#proxy-config-admin-user-id) to #-1, which will not change the user between the processes-- which will maintain the env variables.
On Wed, Feb 18, 2015 at 9:27 AM, 毅程 <phillipchen...@gmail.com> wrote: > Hi: > > I am wondering how to pass > export LD_LIBRARY_PATH=xxx > to traffic_server via traffic_cop, since I am using bin/trafficserver to > start traffic server. > > if I start by using bin/traffic_server, I can export LD_LIBRARY_PATH=xx > directly and it works, but I am using trafficserver script, I do not know > how. > > Many Thanks. > > Cheng Yi >