I want to set an environment variable that will be visible to all processes launched by Upstart. This is on a CentOS system, but I presume the same applies to Ubuntu given that they both use Upstart.
Somewhere in /etc/init/ perhaps?
Note that adding it in /etc/profile.d only applies to login shells. I want all processes (e.g cron, rc.local, etc) to see it.
Obviously I'd prefer not to edit existing sys config files if it can be avoided.