[12:35] hoi [12:35] does the upstart redirect stdin and stdout of jobs it starts? [12:35] (to the system logs) [12:36] well stdin typically doesn't end up on your console [12:37] sleon: http://upstart.ubuntu.com/cookbook/#the-rc-job [12:37] sleon: you can control is with the output statement [12:37] erhm [12:37] console statement [12:37] I think [12:37] console statement is not longer valid [12:37] iirc [12:38] http://upstart.ubuntu.com/wiki/Stanzas [12:38] eaeeehm [12:38] strange [12:38] in the cookbook it is availbe but not in the wiki [12:38] hmm, should i add it? [12:40] no clue [12:40] * pmjdebruijn isn't that experienced [12:40] * pmjdebruijn just noticed it [12:42] * sleon seems to be blind [12:42] sorry guys [12:42] found it [13:04] hmm, default setting is console logged [13:04] how is the output then redirected to the logger? [14:19] another question: is it possible to propagate some data among some jobs? like DISPLAY variable [14:53] sleon, it is indeed: http://upstart.ubuntu.com/cookbook/#environment-variables [15:12] marrusl: i am using already event passing mechanism. it works for the first job [15:12] but then there are jobs which get active when the first jobs is in the starting state [15:12] and how to get these variables into them? [15:15] marrusl: when i have something like : start on (event1 and event2) [15:15] will i get both variables passed to event1 and event2? [15:16] sleon, I think you would need to use instances [15:17] sleon, wait do you mean "and"... or "or" [15:18] even then, if they are starting at about the same time, you could end up with a race condition. [15:19] If I understand what you're trying to do (big if :) I think the instance keyword might help you. [15:19] marrusl: i want and [15:19] marrusl: i want both events to happen, before job starts [15:20] ah. [15:21] the first event is called desktop-session-start [15:21] and the second one is some custom from me [15:21] they come one after another [15:21] does anyone have an upstart script/conf file that successfully launches/kill vnc4server (or some other vncserver) upon boot in Ubuntu 11.04? (Tried writing from scratch, and tried several Google hits, but none worked. Didn't have time for more debugging, but puzzled as to why it didn't work) [15:24] sleon, hmmm... so the first event comes from gdm, and the other from your custom job. [15:25] yes [15:25] and this job is start on the first event [15:25] and gets the whole variables [15:31] sleon, hmm... but if you're not sure which one runs first, you could export the variable in both places maybe? [16:27] thx marrusl [16:27] that is how i am doing it now and it works [16:27] ! [16:27] :D [16:27] nice! [16:28] not as elegant, but hey. [16:28] now the other question is: how does upstart forwards application stdout output to the logger? under which fascility? [16:28] marrusl: but very flexible