[00:56] <iamthelostboy> hi :)  I think I asked this once before, but what is the best way to start an X app from an upstart job?  exec xinit program doesnt seem to be working, though I can xinit program from console..
[01:23] <iamthelostboy> never mind.. i figured out my daftness..
[01:33] <iamthelostboy> actually, i want to start a process and when it is running, emit an event to kick off another job..
[01:34] <iamthelostboy> the process will stay running, so i cant just put the emit after the command, and I cant put a &, because the job is set to respawn..
[01:34] <iamthelostboy> any ideas?
[01:46] <sadmac> iamthelostboy: there's already such an event
[01:46] <sadmac> iamthelostboy: started foojob
[01:48] <iamthelostboy> hey... now thats easy :)
[01:48] <iamthelostboy> im sure I tried that once before.. obviously not though..
[01:49] <iamthelostboy> will the started event be fired as soon as that job is begun?  The second job really requires the application started by the first to be running.. 
[01:50] <iamthelostboy> in our current setup of boot scripts, there is a wait, which I'm sure we could put in..
[01:50] <sadmac> iamthelostboy: its as soon as upstart determines the job to be running. in 0.5 there's a few ways to postpone that. Also I think it waits for post-start to finish
[01:52] <iamthelostboy> i suppose the ideal way would be to have the first application emit the event when it is at a ready state...
[01:53] <sadmac> put in a wait foo in the post-start script or if you have 0.5 use the appropriate expect value
[01:53] <iamthelostboy> its using ubuntu 8.04, which is quite a lot earlier than 0.5 i think
[01:53] <sadmac> yeah. that won't do it
[01:55] <iamthelostboy> post-start scripts only get run when the process ends? so if i run the command through exec, it will not get run until that process ends, but if it isnt run through exec, it would get run pretty quickly?
[01:56] <sadmac> it runs after the process is spawned
[01:56] <sadmac> unless your job is a task not a service
[01:57] <iamthelostboy> no.. its an application, i think..
[01:57] <sadmac> iamthelostboy: do you have a service or respawn stanza?
[01:58] <iamthelostboy> respawn
[01:58] <sadmac> ok so that should be a service...
[01:58] <iamthelostboy> oh..
[01:58] <sadmac> whihc means post-start should get run after the process is spawned
[01:59] <iamthelostboy> ill go try it
[02:01] <iamthelostboy> awesome..
[10:33] <keesj> iamthelostboy: X session live on an other planet, I you want to start something for the current user in the X11 session I think you need to use "X sessions" to do that. 
[10:35] <keesj> but that said I think I would be nice if for example the program that listend to dbus (the gnome volume manager for example) could react on the upstart-events