[00:51] Keybuk: around? [03:03] hello :) is it possible to start an x application from upstart? [03:04] im trying to do an `exec xinit `, when `xinit ` works from the command line, though not from upstart [03:05] the job starts another application prior to the exec command, which isnt preceeded with exec, just not the x command.. [03:09] iamthelostboy: what's the error? [03:09] doesnt seem to be anything.. [03:09] check your system logs [03:09] im just trying to start it on the command line... start [03:14] doesnt seem to be much happening in syslog.. [03:14] just a job main process killed by TERM signal.. from when I stop the job, i assume [03:21] hmm [03:21] what about in your xorg logs? [03:23] its not getting written.. [03:23] hmm [03:23] x doesnt appear to be starting at all [03:23] should that command work ? [03:23] after you do start foojob what does initctl list say? [03:23] do i have the direct the console in some way ? [03:23] X gets its own console [03:24] sorry.. how do i use initctl? im still a little new at some of this stuff [03:25] initctl list [03:25] that particular job is running with a pid.. [03:26] but no X session? [03:26] in ps -A the pid is shown as sh, with the following pid as the first executable in the job [03:26] which is? [03:27] our own executable [03:27] ok, so apparently that's hanging :) [03:27] well.. its running [03:27] the second executable relies on it [03:28] I'll need to see your job definition [03:28] and i can run the second outside the job [03:29] its not too big, so ill just type it here... [03:29] start on aksusbd 5 [03:29] stop on runlevel [!5] [03:29] respawn [03:29] script [03:30] `/dir/app1 [03:30] exec /usr/bin/xinit /dir/app2 [03:30] end script [03:30] without the ` on app1 [03:31] comment out app1, and put twm in for app2. see if you get a twm session [03:36] something happened then.. but im not sure what.. [03:36] ill check what was going on... [03:42] yeah.. i can get a simple x app started without app1 [03:43] but i still see nothing about x in initctl [03:43] probably because it forks off. [03:44] so my job is getting stopped at app1, right? how do i make is run the first app, leave it running, and continue onto the second.. [03:44] i thought it was going to run anything it could, and then pretty much wait at the exec [03:44] iamthelostboy: its a bash script [03:44] iamthelostboy: it runs the bash script and monitors the bash script as a service [03:45] so.. if the 2 apps weren't in the script tags it would run differently [03:45] iamthelostboy: you exec so that your service replaces the bash script and steals its pid and parentage [03:45] iamthelostboy: no, the job wouldn't work. [03:45] oh [03:48] i read somewhere that if i background an app in a job, upstart will see the job as complete and exit? [03:48] no... [03:48] or could i simply run app1 & -- xinit app2 [03:48] not if there's further scripting [03:48] yeah. that'd do it [03:56] of course, now that i have seen it working... [03:56] when i stop the job, only app2 ends, which makes sense now.. [03:56] yep [03:56] but isnt really right [03:56] put in another job [03:57] and give it start on starting app1job [03:57] yeah.. i think ill have to [03:57] do i have to put anything special into the app1 job file to emit the event? [03:59] if you want a special event then yes. starting app1 is emitted automatically [04:00] thanks :) will try it out === mbiebl_ is now known as mbiebl [15:47] Keybuk: ping [15:47] hey [15:48] Keybuk: remember when we talked about objects with no parents being "parented to NULL"? [15:48] vaguely [15:48] that's the way things work [15:49] Keybuk: ok, so suppose we actually maintained a child list for NULL, and nih_free(NULL) freed all of NULL's children [15:50] Keybuk: and suppose we ditched nih_local and made nih_unref behave like nih_unref_only [15:50] Keybuk: and suppose we called nih_free(NULL) at the end of nih_main_loop_iter [15:50] Keybuk: see where I'm going? [15:50] err, wouldn't that make things die in a great big fire [15:50] you have to have some top-level objects [15:51] you'd free them every main loop iteration [15:51] and you make nih_local depend on the main loop [15:51] whereas now, it's actually limited to the C context, which is better [15:51] nih_local would just go away [15:51] and this is a good thing, because? [15:52] completely, utterly impossible to have forget-to-free errors [15:52] we've written 9/10 of an automatic garbage collector. why not finish it? [15:54] well, ignoring the fact you're over-freeing everything [15:54] fixable... [15:55] I don't see that it buys anything? [15:55] things like initctl don't necessarily have a main loop [15:55] so nothing would be freed [15:55] and it's not the kind of thing you want to do in a main loop _anyway_ [15:55] they can call it manually. [15:55] nih_free (NULL); or perhaps a more descriptive macro. NIH_GC_CHECKPOINT; [15:56] I prefer nih_local [15:58] sadmac: seen your nice man pages for events [15:58] would you care to submit that upstream [15:59] mbiebl: notting wrote those. [15:59] Keybuk: want em? [15:59] sure, send to ML [15:59] sadmac: is there other nice stuff hidden in the fedora package ;-) [16:41] * cwillu pokes sadmac with a stick [16:42] cwillu: yes? [16:42] nothing it particular beyond the nice man pages :) [16:42] s/it/in/ [16:43] (in response to 'yes?', not in response to 'is there other nice stuff') [16:43] he [16:43] +h [16:46] there's several patches in there that casey hasn't told me about ;) [16:48] Keybuk: I did tell you about that guy contributing the state-transfer stuff, right? [16:55] yes [16:56] Keybuk: ok, and you know about the force-on-shutdown-reboot one (I think you commented on the bug...) [16:56] what else is in here you might be missing... [16:57] shit. sent from the wrong email address. Now I'm being moderated. [16:57] damnit thunderbird! [16:58] http://cvs.fedoraproject.org/viewvc/devel/upstart/upstart-force-on-shutdown-reboot.patch?view=markup [16:59] http://cvs.fedoraproject.org/viewvc/devel/upstart/upstart-gcc43.patch?revision=1.1&view=markup [17:03] Keybuk: I'm pretty sure you commented on the bug for #1. Thought the patch got in there [17:19] hm, maybe it would make sense to release a 0.3.10 with those patches? [18:31] Keybuk: you want to approve my message to upstart-devel with the manpage in it? (I used my school email by mistake, which isn't subscribed) === notting__ is now known as notting