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