Have upstart read environment from /etc/environment for a service

Posted by Nikratio on Server Fault See other posts from Server Fault or by Nikratio
Published on 2010-04-01T21:22:11Z Indexed on 2010/04/01 21:23 UTC
Read the original article Hit count: 616

Filed under:

What is the best way to provide the environment variables defined in /etc/environment to an upstart service?

I think simply sourcing them with . in a script section does not work, because the scripts are executed by sh which would need an additional "export" in front of every definition...

© Server Fault or respective owner

Related posts about upstart