PATH and LD_LIBRARY_PATH environment variables

Where do I set these 2 environment variables so that non standard binary can be executed from /etc/init.d directory?
Thanks

1 Like

In a wrapper script in /etc/init.d/

1 Like

Ok. Where do I set the variables for system wide?

mkdir -p /etc/profile.d
tee /etc/profile.d/custom.sh << "EOF"
...
EOF
. /etc/profile

Thanks. That's what I was looking for.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.