=== int0x0c [n=ben@161.253.14.157] has joined #upstart === chowmeined [n=will_@76.28.132.206] has joined #upstart === GodEater_ [n=bryan@rockbox/staff/GodEater] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === int0x0c [n=ben@161.253.13.153] has joined #upstart === Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === dspstv [n=aeroflot@AMarseille-252-1-184-27.w86-219.abo.wanadoo.fr] has joined #upstart [02:42] hi all [02:42] im on this machine that has ubuntu [02:43] so no inittab is present [02:43] and i just need to add one line to put a program to respawn if it crahses [02:43] i've read and google has mislead me since yesterday [02:43] now, someone from the ubuntu channel told me to ask in here === juergbi [n=juerg@80-219-21-79.dclient.hispeed.ch] has joined #upstart [02:44] in inittab it will be just adding one line... [02:44] im lost [02:48] inittab isn't used in Ubuntu [02:48] what would you like to do? [02:52] Keybuk, yes that i figured [02:53] i just need to add a line [02:53] for a program [02:53] i need to keep alive [02:53] so, respawn was my friend [02:54] what line would you have added? [03:01] let me see.. [03:01] i have to copy any and just change the service for the program i want [03:06] need to just know where one does that in upstart [03:06] please [03:06] i have a software for music called pd [03:06] i need to treat it as a deamon [03:06] i have done that in other distros [03:06] you're not helping yourself here [03:06] sure [03:06] i can agree [03:07] im not a pro on this [03:07] if you give me the details you enter into inittab, I can tell you what you need to do for upstart [03:07] ok [03:07] e.g. what command is it that you need to run, etc.? [03:07] does that command go into the background when you run it? [03:24] this is what i had used [03:24] null:12345:respawn:/bin/pd -nogui -verbose -nomidi [03:24] null:12345:respawn:/bin/pd [03:25] ok [03:25] so in Upstart parlance, you'd need a file in /etc/event.d containing [03:25] respawn [03:25] exec /bin/pd -nogui -verbose -nomidi [03:26] -- [03:26] that requires manual starting, see the tty1 file for how to make it start and stop in certain runlevels [03:29] Keybuk, the name of that file requieres a special naming structure? [03:29] Keybuk, tx! [03:29] dspstv: no, name can be whatever you like [03:36] man tx again [03:36] i take note now === kdag [n=aeroflot@AMarseille-252-1-67-29.w86-194.abo.wanadoo.fr] has joined #upstart === kdag [n=aeroflot@AMarseille-252-1-67-29.w86-194.abo.wanadoo.fr] has left #upstart ["out] === mbiebl [n=michael@p5B13374E.dip0.t-ipconnect.de] has joined #upstart === mbiebl_ [n=michael@p5B13374E.dip0.t-ipconnect.de] has joined #upstart === j_ [n=j@fe2adsl-2.wyplay.net] has joined #upstart [06:15] hi [06:16] hi === Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === mbiebl [n=michael@85.180.68.116] has joined #upstart === j_ [n=j@88-139-64-51.adslgp.cegetel.net] has joined #upstart [09:45] hi [09:45] hi [09:45] I'm looking for an upstart maintainer [09:46] if you ask a q and idle someone will get back to u [09:47] I'd like to known when it's schedule to add the "and" condition in upstart [10:23] j_: it's already added on bzr trunk, but has interestingly unexpected issue [10:26] could you be more specific? [10:27] well, take a simple example [10:27] start on foo and bar [10:27] stop on frodo or bilbo [10:27] -- [10:27] foo happens, job remains stopped [10:27] bar happens, job starts [10:27] frodo happens, job sttops [10:27] -- [10:27] now, do foo *and* bar both need to happen again? [10:27] or is it enough that either happens? === ..[topic/#upstart:Keybuk] : Upstart 0.3.8 | http://upstart.ubuntu.com/ | http://people.ubuntu.com/~fabbione/irclogs/ | https://lists.ubuntu.com/archives/upstart-devel/2007-October/000468.html [10:36] Keybuk: eh, in my scheduler i was lucky in that i could say *both* always needed to happen again :D [10:37] re the two seperate upstart services idea, i think you would have a chance at doing it by exposing an interface from the manager back the job handler (pid 1) [10:37] I think that it will stop [10:37] but it would get messy [10:37] j_: remain stopped? [10:38] so if frodo or bilbo happen, the job needs both foo and bar to happen again? [10:38] no [10:38] no? what happens once a job stops then? [10:38] which events can restart it? [10:38] not necessarlely [10:39] you may need to a once condition [10:40] like that [10:40] ? [10:40] start_once on foo and bar [10:40] ? [10:40] stop on frodo or bilbo [10:41] respan on foo or bar [10:41] that makes it insanely complicated ;) [10:41] You're right [10:41] since then upstart would need to track whether a job has been run once or not :) [10:42] I think that the problem is to known what do to respam it [10:43] in practice I think that consistency is better than flexibility [10:43] since it's easier to document consistent behaviour [10:43] and consistent behaviour has emergent properties [10:43] the problem I hit was I implemented it to both events had to happen again [10:43] once a job was in stop/waiting, it "forgot" what had started it [10:43] the problem was that this worked fine [10:43] except when the events happened while the job was still stopping [10:44] in which case either one would start it again [10:44] so you ended up with a curious situation where the behaviour depended on how quick you were [10:44] the worst kind of race condition [10:44] so I realised that the event expression has to be evaluated [10:44] but then instantly forgotten the moment it's true [10:44] instead somehow transferring the result of that into the job [10:44] not as easy as it appeared [10:46] could it be possible to add a "schedule work" and a lock of the events when you have a stop event [10:47] j_: sorry, I don't follow [10:48] that will fix the problem, when you have a stop , if a new event arrive it will be handle after the stop not a the same time [10:49] ahh [10:49] a queue [10:49] yes [10:49] j_: is that what you meant? [10:49] ahh [10:49] too slow [10:49] :P [10:50] just when you have a stop condition and only for its events [10:50] it will append not every time [10:56] or make the expression indempotent [10:56] so once evaluation has finished, it can safely be evaluated again immediately [11:04] what did you if a stop takes 1 minutes [11:05] ? [11:07] it'd be restarted at the end of it [11:07] since the goal would be start, so on leaving the post-stop state, it'd move back to pre-start [11:08] so you have a queue [11:08] no [11:09] how did you do? [11:09] as I said, making the event expression indempotent [11:10] once evaluated to true, the result is copied into the job [11:10] and then the expression is cleared [11:10] leaving it to be evaluated again immediately [11:13] ( bah, lifeless isn't online ... [11:13] I can't troll him with BZR IS GIVING ME A SUB-OPTIMAL EXPERIENCE [11:13] "git would handle my use case much better" [11:13] etc. :p ) [11:15] troll me if you like, im the anti-git troll on ddl after all :) [11:16] unfortunately I don't like git either [11:16] I rather like bzr [11:16] except when it behaves like a moronic child, like it's doing right now [11:17] *all* I want to do is cherry-pick commits [11:17] apparently this is hard [11:17] :D === Jc2k suddenly remembers your pro-bzr blog post :) [11:21] Holy Crap [11:21] 0.3.8 was released exactly 7 months ago [11:22] And when will arrive the new release? [11:23] which new release? :) [11:24] Upstart XP [11:24] Huh? XP? Don't you mean Vista? ;) [11:24] wasn't Vista the name of an Amiga program to render landscapes? [11:25] 0.3.9 or 0.4.0 [11:27] there won't be an 0.4.0 [11:27] next planned major is 0.5 [11:27] see topic :) [11:28] I'm currently read the webpage [11:28] https://lists.ubuntu.com/archives/upstart-devel/2007-October/000468.html [11:30] yes [11:31] Hm. I remember the program, but i dont remember its name. [11:32] It was a really cool piece of software. :-) [11:32] (Assuming were thinking of the same Amiga program that generates landscapes.) [11:32] Wikipedia says it was Vista [11:32] and then later, VistaPro [11:34] Anyone watch Heroes? http://heh.fi/heroes/ [11:35] ion_: am about half way through it [11:35] im in search of s2 [11:35] Have you read the comics? The episodes often assume youve read the corresponding ones as well. [11:36] (And thus the page, to easily know which ones to read between which episodes.) [11:37] ion_: I didn't even know there were comics === Jc2k too [11:39] Some times the comics enlighten the history of existing characters; some times they even originally introduce characters used in the following episodes. [11:46] j_: https://launchpad.net/upstart/0.3/0.3.9 === ..[topic/#upstart:Keybuk] : Upstart 0.3.9 | http://upstart.ubuntu.com/ | http://people.ubuntu.com/~fabbione/irclogs/ | https://lists.ubuntu.com/archives/upstart-devel/2007-October/000468.html [11:51] Keybuk: thanks