/srv/irclogs.ubuntu.com/2010/04/05/#upstart.txt

NikratioWhat is the best way to give an upstart job access to the environment variables defined in /etc/environment? Unfortunately upstart does not seem to run pam_env.so, and explicitly sourcing /etc/environment in a script block requires to add additional "export" declarations into the script for all the variables (which is nasty, because I then have to manually  keep the upstart config and /etc/environment in sync)14:26
ionPAM support is in TODO.14:30
ionFor now, use su.14:30
NikratioA plain "su [user] -c command" creates a su:session log entry in auth.log, but the variables are still not defined.14:31
NikratioDoes it have to be a login-su?14:32
ionI don’t know offhand, you’ll have to test it.14:32
NikratioActually I did test it, and with su -l it works. I was hoping to extract some info on why that's necessary. But I guess I'm in the wrong room for that ;-)14:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!