/srv/irclogs.ubuntu.com/2013/01/21/#upstart.txt

sveinseAre there any activity here? Anyways. telinit can be used asynchronously to change runlevel. How can I use initctl to do it synchronously? With that I mean that it does not return until all events regarding the runlevel change has been started10:06
sveinseWell I found it: initctl emit runlevel RUNLEVEL=... 10:19
xnox=)10:24
jodhxnox: have you spoken to the desktop folk about a fallback for XDG_RUNTIME_DIR?11:05
xnoxno.11:05
xnoxjodh: who was our desktop team contact / driver behind the spec?11:06
* xnox adds a note to my backlog.11:06
jodhxnox: nobody nominated - I'd try pitti/seb128 for starters.11:07
jodhxnox: we really need to try to get all outstanding branches merged this week. Added to which, I'm starting on list-sessions which will need the same code to find the session files.11:07
jodhxnox: we'll go over all this in the meeting later.11:08
xnoxack.11:13
jodhxnox: you haven't started on the ':sys:' / ':user:' code yet have you? If not, I'm about to look at it.11:33
xnoxjodh: nope. Go ahead =)11:36
sveinseAre there any ways to set a environment from a file in upstart. I have a service which needs the LANG environment var set. The value of this var can be read from /etc/locale. I'd like to avoid wrapping the exec with sh if possible11:50
sveinse*reading 8.2 in cookbook....*11:51
xnoxsveinse: here is verbose example of sourcing settings: http://upstart.ubuntu.com/cookbook/#pre-start-example-ubuntu-specific11:56
sveinsexnox: Yes, that is one half of it. What I'm wondering when reading the env var example in 8.2 is that does export var in pre-script make the var visible for the binary run by exec?11:58
xnoxsveinse: no.12:02
xnox(as far as I currently tested locally)12:03
sveinsehmm,ok . So I probably need to wrap the executable in a script section...12:18
xnoxsveinse: exec LANG=C.UTF-8 mydaemon12:32
xnoxshould work as well, but that will also be executed via shell.12:32
sveinsexnox: If it was so simple... exec LANG=$(cat /etc/locale) mydaemon  would be more correct12:33
xnox$ cat /etc/locale12:34
xnoxcat: /etc/locale: No such file or directory12:34
sveinseBut it seems wrapping through sh seems inevitable 12:34
xnoxthe correct way is to call $ locale and use that output (for me that defines en_GB.UTF-8 correctly)12:34
sveinseon this system /etc/locale will always exist, but anyways, since I can't pass pre-script variables into the main exec, it seems I have to use the shell to start the daemon12:36
sveinsebaah. Of course. I can use script and call the daemon with exec. This way I can load the environment I need.12:39
xnoxyes. =)12:44
xnoxpre-start script - is only usually used for sanity checking if daemon can / cannot start & e.g. abort if not properly configured.12:45
jodhxnox: you about for the meeting?15:04
xnoxyeap15:05
jYi'm using ubuntu 10.04 and an upstart job is hanging for start/stop.. no expects in there20:17
jYwhat can i do to debug it?20:17

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