[00:56] 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] never mind.. i figured out my daftness.. [01:33] actually, i want to start a process and when it is running, emit an event to kick off another job.. [01:34] 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] any ideas? [01:46] iamthelostboy: there's already such an event [01:46] iamthelostboy: started foojob [01:48] hey... now thats easy :) [01:48] im sure I tried that once before.. obviously not though.. [01:49] 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] in our current setup of boot scripts, there is a wait, which I'm sure we could put in.. [01:50] 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] i suppose the ideal way would be to have the first application emit the event when it is at a ready state... [01:53] put in a wait foo in the post-start script or if you have 0.5 use the appropriate expect value [01:53] its using ubuntu 8.04, which is quite a lot earlier than 0.5 i think [01:53] yeah. that won't do it [01:55] 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] it runs after the process is spawned [01:56] unless your job is a task not a service [01:57] no.. its an application, i think.. [01:57] iamthelostboy: do you have a service or respawn stanza? [01:58] respawn [01:58] ok so that should be a service... [01:58] oh.. [01:58] whihc means post-start should get run after the process is spawned [01:59] ill go try it [02:01] awesome.. [10:33] 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] 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