How does one go about getting a new environment variable picked up system-wide without restarting the server?
As its an Ubuntu 11.x server, I'm using Upstart to start/restart processes.
I added a new environment variable to /etc/environment that needs to be picked up by one of my app's processes.
If I start the process directly from my shell, the variable is being picked up and all is fine (I've already sourced /etc/environment for my session). However, when I start/restart the process using its Upstart service name, the variable is not being seen.
sudo start app-name
I'm pretty sure that if I restarted the server the new variable will get picked up, however I would like to try to avoid that. I have some other live processes running on it that I'd like to avoid interrupting if at all possible.