hvgotcodes | is this channel logged? | 14:13 |
---|---|---|
hvgotcodes | im looking for an answer i got last week | 14:13 |
soren | hvgotcodes: http://irclogs.ubuntu.com/ | 14:20 |
hvgotcodes | soren: thanx | 14:32 |
soren | sure | 14:32 |
hvgotcodes | soren: i cant find it -- the question last week was basically how to read env variables out of /etc/environment and make them available for the process that upstart is managing. | 14:52 |
hvgotcodes | the upstart conf i had is here | 14:53 |
hvgotcodes | https://gist.github.com/ef3ff41c2928db636917 | 14:53 |
hvgotcodes | i think i just need to add some script sections to read the environment | 14:53 |
hvgotcodes | soren: i found the pastebin with the answer i got on this forum -- problem is when i try it the git_repo variable is not seen from within the process | 15:12 |
hvgotcodes | http://paste.ubuntu.com/600007/ | 15:12 |
JanC | hvgotcodes: sudo cleans up the environment, you'll need to add the -E option to sudo | 15:29 |
JanC | (I should say: it cleans up the environment with a default Ubuntu sudoers config) | 15:30 |
JanC | and you might also have to add an option in sudoers to allow this | 15:36 |
hvgotcodes | JanC: you are saying just add a -E? | 15:37 |
hvgotcodes | is there a better way to be doing this? | 15:37 |
JanC | I haven't tested if just -E is enough; maybe you'll need to change sudoers | 15:38 |
hvgotcodes | JanC: what do you mean by it 'cleans up the environment'? I thought that /etc/environment was always available no matter what | 15:39 |
hvgotcodes | there is no -E option for sudo | 15:40 |
hvgotcodes | at least in the man page | 15:40 |
hvgotcodes | oh yeah it is there | 15:41 |
hvgotcodes | hmm why do i get stop: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory when i try to do service theservice stop? | 15:43 |
hvgotcodes | i wonder if it would be better to have a wrapper script to launch the process, and source the environment in there | 15:44 |
radix | would a post on the upstart-devel list about my vserver + blocking upstart problems be appropriate? | 21:02 |
radix | I'm not sure how strict the list is about separating user support from development | 21:03 |
JanC | radix: user questions are welcome AFAIK (there isn't that much traffic) | 21:22 |
radix | okie doke | 23:00 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!