=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === khermans__ [i=administ@nat/cisco/x-ff87b469336f7e6a] has joined #upstart === mbiebl [n=michael@e180088015.adsl.alicedsl.de] has joined #upstart === theCore [n=alex@ubuntu/member/theCore] has joined #upstart === _ion [i=johan@kiviniemi.name] has joined #upstart === khermans__ [i=administ@nat/cisco/x-879df417dccb614d] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === int0x0c [n=ben@161.253.46.197] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === cwillu [n=cwillu@S01060011d8399444.ss.shawcable.net] has joined #upstart [09:29] how can I get a program in an event to start on a particular tty? === mdales [n=michael@dsl-217-155-205-58.zen.co.uk] has joined #upstart [09:34] nvm, guess it was a getty question === Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Md_ [i=md@freenode/staff/md] has joined #upstart === Md_ is now known as Md === Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart === cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === cwillu [n=cwillu@S01060011d8399444.ss.shawcable.net] has left #upstart [] === mdales [n=mdales@cpc3-cmbg6-0-0-cust25.cmbg.cable.ntl.com] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === reppel_ [n=reppel@213-140-11-128.fastres.net] has joined #upstart [11:36] is it possible to pass a env variable from the pre-start stanza to the exec stanza? [11:36] sorry [11:36] the respawn stanza [11:37] I'm not sure I understand? [11:39] well [11:40] i need to respawn a daemon [11:40] this daemon takes an optional argument [11:40] -D [11:40] and i know if i have to call it with the option reading a file on the filesystem [11:40] so i thinked about reading this file in the pre-start stanza [11:41] but it seems i can't pass env variables from pre-start to respawn [11:41] right [11:41] you can set the same variable for both though [11:43] Keybuk: how? [11:43] lag lag [11:44] env FOO=BAR [11:44] in the job [11:51] Keybuk: yep but the problem is that i need to set FOO to BAR if /etc/sysconfig/video exists (or veryfing a generic condition), otherwise i need to set FOO to another value [11:51] you can map this problem to /etc/default/ files [11:52] if you source for example /etc/default/daemon and you found interfaces="eth0,eth1" [11:52] you need to pass these options to the daemon [11:54] I understand the problem, there isn't a solution to it yet [11:57] ok thanks [11:57] is it planned for the future? [11:58] dunno [11:58] I've never seen the point of /etc/default files [11:58] neither I [11:58] just wanted to help you understand :) [12:01] if I were to worry about those, I'd just implement an env FILENAME option or something [12:02] Keybuk: what do you suggest in my case? [12:03] respawning a script? [12:03] sure [12:03] script ... [12:03] end script [12:03] respawn [12:04] you can respawn a script/end script stanza? [12:06] yes [12:06] nice :) [12:06] much cleaner [12:06] thanks Keybuk [12:10] oh, just another question [12:10] i have a job used as state [12:10] its definition is the following: [12:10] on stopped some_event [12:11] if i try to stop it i get from initctl the following message: [12:11] # initctl stop system-up [12:11] system-up (stop) running [12:12] which upstart version? [12:12] 0.3.5 [12:12] yeah, known bug [12:12] fixed in bzr trunk [12:12] in the main trunk? [12:12] yes [12:12] ok, thanks a lot [12:13] initctl emit foo - should that gerenate event foo? === phsdv [n=paul@91.168.175.163] has joined #upstart [12:13] or did I misunderstand the docs? [12:14] mdales: yes it does [12:14] okay, but not on 0.2.7? [12:14] initctl trigger on 0.2.7 [12:14] (i.e., what's on edgy) [12:14] ah [12:14] thanks [12:14] mdales: don't know about 0.2.7, i'm using 0.3.5 [12:14] (we changed the terminology) [12:14] right [12:14] many thanks [12:22] Keybuk: are you still working on specs of complex-event or you have reached a final state? [12:23] still working on it [12:23] we're really not happy with it [12:23] the respawn scrip thing mentioned above - is the syntax for that just "respawn script ... end script"? [12:23] +t [12:24] no [12:24] "respawn" appears on a line on its own [12:24] okay [12:24] respawn CMD is just a (removed in bzr trunk) shortcut for "respawn\nexec CMD" [12:25] is that the right thing to do for a respawning process that emits an event as it starts - the script will do an initctl trigger and then run the command, and I specify that script as respawn? [12:25] okay [12:27] the only difference would be that instead of running exec() on the command directly, it would exec() a shell and pipe in the script instead [12:28] cool [12:42] okay, many thanks for that. I now have proper dependancy on scripts [12:42] much appreciated === nakee [n=nakee@grok.cs.huji.ac.il] has joined #upstart [12:44] hey [12:46] hi [12:46] <_ion> Hi [12:46] upstart also replaces cron and so on? [12:46] <_ion> Not yet. [12:47] but it suppose to be something like the daemon they have now on macosx? [12:47] we're heading in that direction, yes [12:47] but a little earlier in the development cycle than they are [12:47] (which reminds me, the launchd never did e-mail me) === pschulz01 [n=paul@202.174.42.5] has joined #upstart [12:48] Hello.. How do I enable a serial console in edgy? [12:48] (Fresh install) [12:49] pschulz01: try #ubuntu [12:49] Keybuk: Sorry.. dev forum? [12:50] Ubuntu users/support channel [12:50] <_ion> pschulz: Look at /etc/event.d/tty1, create /etc/event.d/ttyS0 just like it but modify the parameters on the "respawn" line appropriately. [12:50] <_ion> (I think) [12:50] _ion: Ta.. exactly what I was after. [12:51] (/etc/inittab was missing :-?) [12:51] <_ion> /etc/event.d is the Upstart equivalent of inittab. [12:52] _ion: Restart required? [12:52] no [12:52] <_ion> sudo initctl start jobname (where jobname is the filename, e.g. ttyS0) === __keybuk [n=scott@quest.netsplit.com] has joined #upstart [12:54] _ion: Wahoo!!! ta. one wyse terminal connected and talking :-) === _ion wonders whether any hardware terminal supports UTF-8 [01:01] hmmm. I had a respawned script that did "initctrl trigger myserverstart \ /usr/bin/myserver" and all was well [01:02] you'd get "started myserver" anyway [01:02] when I added a initctrl trigger myserverstop after the myserver line the script no longer seems to stop myserver [01:02] yes [01:02] that was fine [01:02] right, it would kill the shell script not the daemon running inside it [01:02] you need to use trap to kill the daemon [01:02] but it did that in the first case [01:02] both cases are scripts [01:06] ? [01:07] can you pastebin the job? [01:08] sure [01:10] http://pastebin.ca/377040 [01:11] if you remove the second call to initctl it works [01:11] anoying Xvnc doesn't dump it's pid anywhere [01:14] what does it do if you remove the second initctl call? [01:14] and what does it do if you don't/ [01:14] when I so a stop Xvnc will terminate [01:14] without it it continues to run [01:15] so without the second initctl line, Xvnc gets killed? [01:15] How do I send upstart output to a serial console? [01:15] with the second initctl line, Xvnc doesn't? [01:15] yes [01:15] pschulz01: console=/dev/ttyS0 on the kernel command-line [01:15] mdales: shell behaviour, I would guess [01:15] fair enough [01:15] I'll add a trap handler for TERM [01:16] I assume that otherwise that's a good way to stignal the start/stop of a service? [01:16] it's mostly so when I do a stop comamnd it stops the thing that was started by vcnserver11 event [01:16] +the [01:17] I guess I could do that in the stop stanza [01:17] anyway, once again, many thanks for your advice [01:18] Keybuk: I did that... I'll have a look at it again though.. as I thought that I would be seeing more messages than what I currently am. [01:19] pschulz01: in normal operation, you won't see any messages [01:20] Keybuk: Ta, [01:20] mdales: I don't see why you need the initctls there, though [01:21] in you can't see why I need the events? [01:21] of why I've put them there in particular? [01:22] s/of/or/ [01:23] I have another script that launches another program in response to Xvnc starting/stopping [01:24] we have some hardware thin clients that are essentially ethernet attached framebuffers. there's a program called nivo2vnc that I use to connect the Xvnc session to the thinclient [01:24] mdales: right, but you get events when jobs start and stop for free [01:24] ah, okay [01:24] I missed that in the docs [01:24] I'll go and reread [01:25] assuming that job file is called vncserver [01:25] you get a vncserver/started and vncserver/stop event [01:26] okay [01:26] thanks [01:26] I need to go to a meeting now, but I'll try that when I get back === Trevelyan` [n=Jim@unaffiliated/trevelyan] has joined #upstart === _ion [i=johan@kiviniemi.name] has joined #upstart === Trevelyan [n=Jim@unaffiliated/trevelyan] has joined #upstart === _ion [i=johan@kiviniemi.name] has joined #upstart [02:41] Keybuk: "start on started someevent" and "start on someevent/started" have the same meaming? [02:45] reppel_: no [02:45] they're different events, from different versions of upstart [02:45] i'm using 0.3.5 with "start on started event" [02:45] is it different in trunk or previous versions? [02:46] you mean "start on started job" [02:46] sorry [02:46] yep [02:46] and that's correct for 0.3.5, started is emitted when the job is running [02:46] job/started is what 0.2.7 emits, at a similar, but not identical point [02:46] Keybuk: is it possible to run a daemon under a given uid with upstart? [02:47] currently i'm using su [02:47] use su [02:47] is it a planned feature? [02:47] we're planning for user jobs [02:47] where a job can be registered in the name of a user, and only that user (or root) can start/stop it, etc. [02:48] and the processes associated with that job are run as that user, in a full PAM session [02:48] ah ok [02:48] Keybuk: do you think feisty+1 will be purely upstart based? [02:48] reppel_: I don't know, maybe [02:48] feisty isn't upstart-based yet [02:49] getting promoted didn't leave me enough time to do that [03:17] are there circumstances under which respawn will stop trying to work? [03:22] yes [03:22] if the limit is reached [03:25] cool [03:25] ta [03:25] respawn limit TRIES INTERVAL [03:25] e.g. [03:25] respawn limit 100 10 [03:25] may only be restarted 100 times every 10s [03:25] if it steps over that, it's stopped [03:25] okay [03:27] hmmm [03:27] that's presumably over the lifetime of a system? [03:27] yes [03:27] okay [03:27] can I set it to infinite? [03:27] respawn limit 0 0 [03:28] okay [03:28] thanks [03:29] the TRIES counter is reset if INTERVAL is passed [03:29] so if the 100th respawn happens more than 10s after the first one, it's not counted as a runaway job [03:29] ah [03:29] okay [03:29] that's more what I want I suspect [03:31] hmmm. still not working. I need to add some logging to find out why my child scripts aren't being launched at boot [03:31] boot with --debug [03:32] --debug on the kernel option? [03:32] yeah [03:32] will that dump to the screen or to a log file? [03:35] screen [03:35] you don't have a writable filesystem ;) [03:35] ah [03:49] hmm. okay, I suspect one thing I need to do is make my Xvnc script dependant on xfs having been started [03:49] Xvnc struggles to start, and I'd wager xfs not being ready would be a good reason for that to happen === j_ack [n=rudi@p508DB9B4.dip0.t-ipconnect.de] has joined #upstart === _ion [i=johan@kiviniemi.name] has joined #upstart [04:06] <_ion> Sigh, bloody ISP. [04:08] :) [04:09] is there any other kind? [04:09] <_ion> :-) [04:09] is there an easy way to tie an upstart script to a rc.d event? I've been looking through the code to see if I can spot it but failed thus far to spot anything [04:09] <_ion> At least this one doesn't charge 25 /month for a static IP address and say "you can't have a server" (even though the Finnish law doesn't allow an ISP to say so). === theCore [n=alex@ubuntu/member/theCore] has joined #upstart [04:28] mdales: define "rc.d event" [04:35] where do I define that? I've not seen any examples of defines. Basically I want to tie my script to the starting of xfs whcih on edgy is started in rc2.d [04:35] apologies if I'm missing some obvious docs on this stuff [04:37] no, I mean can you define "rc.d event" for me, since I don't understand what you mean [04:38] the most you could do would be to start your script on rc2.d/stop [04:38] okay [04:39] or modify /etc/init.d/rc to emit upstart events [04:39] yeah [04:39] I was pondering that option [04:39] but I think your idea of having it start on rc2.d/stop would work too [04:39] and mean less messing with other scripts === j_ack [n=rudi@p508DB9B4.dip0.t-ipconnect.de] has joined #upstart === int0x0c [n=ben@161.253.46.197] has joined #upstart === AStorm [n=astralst@puszkin.org] has joined #upstart [06:10] Hello guys. [06:10] Any new releases? (need a new one for my liveUSB :> ) [06:11] what do you need a new one for? :p [06:11] what's wrong with the old one? [06:11] Complex events? [06:12] Maybe I'll just use the latest bzr. [06:12] complex-event-config is being rather complex to design ;) [06:12] complex events aren't even in bzr trunk [06:12] so they wouldn't appear in the next release anyway [06:12] Keybuk: uh... [06:12] still "drafting"/"experimental" [06:12] Uh... ^2 [06:12] But I can manage with current upstart too. [06:13] But then, any init system would work fine for that. [06:14] need to finish the design of complex-events before the implementation can be released [06:15] Good. Hate to use unfinished and broken tools. === juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart === mbiebl [n=michael@e180086079.adsl.alicedsl.de] has joined #upstart [06:36] I hate it when test cases break when I change things [06:37] Keybuk: with feature freeze nearing for feisty, do you still hold on your ambitious plans of upstartifying the core system services? [06:37] no [06:37] they'll be optional packages instead [06:37] IIRC feature freeze already started [06:39] general advice; if you want time to do things, *don't* say yes to becoming a manager [06:39] geg [06:39] he [06:39] turns out ComplexEventConfig was more complex than anticipated ;-) [06:39] heh [06:40] mbiebl: nah, I anticipated it would be complex [06:40] I just want it to be elegant, really [06:41] Well, I just noticed your hesitations (better think twice than rush it) [06:42] But getting it right (which includes elegance imo) is surely more important than getting it out quickly [06:43] exactly [06:45] Keybuk: the vim syntax highlighting file, I wrote: where is the best place to put that? [06:46] mail it to the list [06:46] ok. but what about updates (new keywords etc.) [06:47] if you mail it to the list, I'll stick it in bzr :) [06:47] alternatively, make your own bzr branch and add it there, and I can pull [06:48] contrib/ directory or something would do [06:48] never worked with bzr, so I'll go with the first option ;-) [06:50] but maybe a good occasion to learn about bzr... === _ion [i=johan@kiviniemi.name] has joined #upstart === khermans__ [i=administ@nat/cisco/x-a0e2e3363eb9cf3c] has joined #upstart [07:05] yay [07:05] job->pre_start/post_start/etc. are all gone! [07:06] along with job->pid [07:08] <_ion> \o/ [07:09] there's now a single job->process array [07:09] the first five elements of which are builtin to be the default main/pre-start/etc. actions [07:09] and each member has its own pid [07:10] <_ion> Nice [07:11] this makes some code more sane, e.g. the child_reaper doesn't guess which process failed by the state anymore [07:11] it now knows it was the post-start script :) [07:11] also it makes adding custom actions really easy [07:11] <_ion> If the job has multiple instances, will they be added to the array? [07:11] instances are still separate entries in the jobs hash table [07:11] <_ion> Ok [07:12] I haven't disconnected the state from the configured job [07:12] (yet, maybe) === AStorm [n=astralst@chello084010114027.chello.pl] has joined #upstart === pkt [n=pantelis@athedsl-17765.otenet.gr] has joined #upstart === mdales_ [n=mdales@dsl-217-155-205-58.zen.co.uk] has joined #upstart === mdales [n=mdales@dsl-217-155-205-58.zen.co.uk] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart [08:57] Keybuk: Where'd the term watershed come from? [09:02] no idea [09:02] it's a dictionary word === j_ack [n=rudi@p508DB9B4.dip0.t-ipconnect.de] has joined #upstart [09:24] things flow over the top of a watershed [09:27] hmm [09:27] I can't even find any CS references to it. :0 [09:27] Except in evms.rules. =) [09:28] I doubt there are [09:29] it's a geography term :p [09:29] when a river reaches a watershed, the water is collected to be returned at a later time [09:34] http://codebrowse.launchpad.net/~keybuk/upstart/main/revision/scott@netsplit.com-20070301180322-inrigno2arsd68dk?start_revid=scott%40netsplit.com-20070301190545-9fdab2fn014jyx9y [09:34] udev lesson: What happens when a br0 interface is added. [09:34] I see 25-iftab.rules. [09:34] Seems like that would invoke it. [09:35] try it: use udevmonitor and create a new bridge [09:35] ooh. neat utility. [09:36] Have a friend whose getting weirdness with interfaces being renamed involving bridges. I'm wondering if there's anyplace anywhere that DOESN"T rename br0 to eth* === afancy [n=chatzill@xiliu.sby.abo.fi] has joined #upstart [09:44] hi [09:44] This channel requires that you have registered and identified yourself with the network's nickname registration services (e.g. NickServ). Please see the documentation of this network's nickname registration services that should be found in the MOTD (/motd to display it). [09:44] I got the above msg. [09:44] how shoud i do [09:48] interesting. What makes 25-iftab rules NOT continue processing events for the interface? [09:48] The interface it just renamed. [09:49] Or, does it, just under the new name? === mdales [n=mdales@dsl-217-155-205-58.zen.co.uk] has joined #upstart === afancy [n=chatzill@xiliu.sby.abo.fi] has left #upstart [] [10:11] wasabi: the point is that udev continues processing events under the new name [10:12] there should be an IRC flag meaning "I need an operators help" [10:12] and there should be a channel flag that prevents people joining the channel if they have that :p [10:12] :p === Keybuk sets mode #upstart -Md [10:13] :p [10:13] :P [10:13] gotta go, cya === _ion [i=johan@kiviniemi.name] has joined #upstart === int0x0c [n=ben@128.164.137.192] has joined #upstart