=== wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === mbiebl [n=michael@e180125108.adsl.alicedsl.de] has joined #upstart === Amaranth_ [n=travis@ubuntu/member/amaranth] has joined #upstart === Amaranth_ is now known as Amaranth === mbiebl [n=michael@e180125108.adsl.alicedsl.de] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart [02:15] !alindeman:*! Regional server split, looking into it === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === j_ack [n=rudi@p508DA28C.dip0.t-ipconnect.de] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === j_ack_ [n=rudi@p508D92D5.dip0.t-ipconnect.de] has joined #upstart === j_ack__ [n=rudi@p508D897B.dip0.t-ipconnect.de] has joined #upstart === Keybuk [i=scott@conference/canonical/x-20ecf65e61c799f5] has joined #upstart === wasabi_ [n=wasabi@ubuntu/member/wasabi] has joined #upstart === yankees26 [n=james@ool-43575023.dyn.optonline.net] has left #upstart [] === mbiebl [n=michael@e180085146.adsl.alicedsl.de] has joined #upstart === wasabi__ [n=wasabi@cpe-76-184-95-8.tx.res.rr.com] has joined #upstart === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === mbiebl [n=michael@e180104034.adsl.alicedsl.de] has joined #upstart === fx|RabBit [n=rabbit@cm166-191.liwest.at] has joined #upstart [03:32] hmm.. hi === cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === Keybuk [i=scott@conference/canonical/x-04efab55d890e8b0] has joined #upstart === j_ack [n=rudi@p508DB593.dip0.t-ipconnect.de] has joined #upstart [07:13] Random knowledge from Windows: Windows Services are .exe files which use a messaging API to the service host. The service host does the normal respawn stuff, but it can also detect when the service "fails to start". It does so because when the service is successfully started, it should send a message. [07:13] And after a timeout, it hasn't yet happened. The API lets the service "request more time". [07:13] Interesting concept. [07:16] This allows the GUI to act a bit more reasonably... it can basically say "Starting...", and only remove the box when everything is in fact properlly started. [07:16] We can do the same with creative uses of post-start though. === cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === mbiebl [n=michael@e180104034.adsl.alicedsl.de] has joined #upstart === phsdv [n=paul@83.156.71.133] has joined #upstart [08:11] its a watchdog timer [08:11] ping the system to make sure its responsive [08:11] if you dont get a ping back, assume the worst [08:11] how would you do that with post-start? [08:11] you'd need to ddo a dbus ping or something [08:11] i cant think of how else you'd query/ping [08:23] wasabi: launchd uses a similar system [08:23] I was talking to the Nokia guys about having some kind of upstart/service communication as well [08:24] myren: Well, post-start is up to the service to implement however it feels like it. For apache, it could actually issue a GET. [08:24] right [08:25] i was thinking about just portscanning [08:25] lookup the pid in netstat and see if its listening [08:26] Sure, it just connect to it to see if it answers. [08:26] Anything. [08:26] launchd is osx right? === myren nods [08:26] yup [08:26] My dislike with having the service talk to upstart itself is one of politics. [08:27] You'd have to introduce basically a binary dependency to upstart from Apache. [08:27] Which wouldn't go over so well. [08:27] right [08:27] it's useful in things like the 770 though [08:27] Yeah. [08:28] You also could accomplish the same thing with post-start itself pretty easily. [08:28] post-start would start "apache-watcher" or something, a binary, which could talk to apache however it wanted to. [08:28] right [08:29] it makes sense with dbus [08:29] check to see if it has a com.ubuntu.upstart.ping or something [08:29] and if it has the service, hit it [08:29] no dependencies [08:30] Sure, but dbus is itself a dependency most don't want in that place. [08:30] right [08:30] what, upstart or the app? [08:30] both. [08:30] oh, well then you got nothing [08:30] if you dont want to add functionality you wont get functionality [08:30] which is fine [08:30] I doubt the apache guys want to build in dbus to apache. :0 [08:30] A helper? Sure. [08:30] I like the optional functionality idea [08:30] But apache runs on windows too. [08:30] build yourself a 3 line dbus script [08:31] that it can optionally use [08:31] the real issue is with dbus, there's not a particularly good way to dbus a process by its process id [08:31] i really think dbus is the way to go here [08:31] its the only quasi standard communication system you've got [08:32] You mean other than unix sockets. [08:32] a wget ping will help apache and no one else [08:32] Heh. [08:32] but you'd need a ping protocol for unix sockets [08:32] You'd need the same for dbus. [08:32] And a ping protocol is nothing more than a if (!connect()) [08:32] uh, is that applicable for unix sockets [08:33] Either way, I don't think it needs to be part of upstart prime. Simply dispatching to an external helper imo is hte best. [08:33] its definately a great idea [08:33] i like dbus because its functional [08:33] if you ping something [08:33] and you get a reply, you can be just about certain its not totally hung [08:34] it negotiated itself basically beyond reproach [08:34] no ones going to just happen to answer it [08:34] unless they mean to [08:34] Sillyness [08:34] i dunno, it seems like a much more contractual garuntee than seeing if a socket is open [08:35] that seems, i dunno, antiquated [08:35] "Seems antiquated" isn't a very compelling argument. [08:36] dbus is massively complicated for something in PID1. [08:36] as a system wide eventing daemon [08:36] it better fucking support dbus [08:36] um [08:36] i'm no one, ps [08:36] It will, with a proxy. [08:36] Upstart itself uses a plain unix socket. [08:36] i have absolutely zero say in this project [08:37] but personally i think dbus is the only acceptable IPC [08:37] On what grounds? [08:37] its a protocol [08:37] thats it [08:37] Huh? [08:37] its not a socket [08:37] Yes it is. ;) [08:37] a protocol defines ways of talking with each other [08:38] you can scream anything and everything into a socket [08:38] DBUS is a very large complicated messaging API, implemented on top of a socket. [08:38] which is why its useful [08:38] its an API for IPC [08:38] anyone can open up dbus [08:38] I suspect you have conflicting goals. [08:38] and start communicating [08:38] discovering [08:38] eventing [08:39] knowing nothing about hte system [08:39] 1: A user space friendly GUI application managing services. DBUS is nice for that. [08:39] its a machine to machine communication language [08:39] 2: PID 1 [08:39] <_ion> We should use XML for IPC! Upstart doesn't have a sufficient amount of enterprise yet. [08:39] upstart is not just another pid 1 replacement [08:39] Hmm. Yes it is. ;) [08:40] it seems to me like the goal is much larger than simply initializing programs [08:40] jhaltom@station-1:~$ ls -al /sbin/init [08:40] -rwxr-xr-x 1 root root 57696 2006-10-10 05:42 /sbin/init [08:40] that there's a strong eventing componenet too [08:40] jhaltom@station-1:~$ ls -al /usr/lib/libdbus-1.so.3.0.0 [08:40] -rw-r--r-- 1 root root 195484 2006-10-20 06:46 /usr/lib/libdbus-1.so.3.0.0 [08:40] dbus is almost *4* times larger than upstart. [08:40] whats an order of magnitude or two between friends [08:40] Excluding dependencies of dbus. [08:41] ok, size asize [08:41] aside [08:41] practicality aside [08:41] just for a second [08:41] Why put it aside? It's are core argument. [08:41] It's PID1. [08:41] because its your only reply to everything i say [08:41] If it crashes, your system turns off. [08:41] and you ignore every point i make simply on that ground [08:41] just bear with me for a second [08:42] <_ion> I don't really see moving from 60k to 200k as a problem with any hardware upstart is running on. Oh, and: [08:42] <_ion> -rwxr-xr-x 1 root root 1166796 2006-10-10 17:46 /lib/libc.so.6 [08:42] Sure. [08:43] sorry work for a second [08:43] <_ion> I don't have a strong opinion either way. I guess dbus is as good protocol for IPC as any. [08:43] v. sorry [08:43] ok back [08:44] the thing is, most pid1's play a passive role in the system [08:44] they launch a bunch of shit and then go to sleep and become obsolete [08:44] upstart, to me, signifies very much more of an event based process management system [08:44] rather than simply an init script [08:45] i could be misconstruing the goals, but it seems to be something that continues doing useful work as the system stays up [08:45] to really effectively do that, it needs to be capable of eventing with other subsystems [08:45] it needs IPC [08:45] i could be totally misconstruing the goals purpose & design here [08:45] but i thought the idea was to make it functionally more complex [08:46] thats it [08:46] 1) Most inits continue doing useful work, such as switching runlevels, which can be considered "acting on events". [08:46] 2) It is currently capable of IPC. It alrady has it. [08:46] thats the main stimuli-response i see [08:47] 3) The goal of software is never to make it more complex. [08:50] no thats your goal [08:50] The current version of Ubuntu, for example, includes sysvinit, atd, crond, [08:50] anacron and netkit-inetd; all of which are congured dierently, yet are [08:50] arguably performing the same kind of job. [08:50] jobs such as starting and stopping services and run- [08:51] ning user scripts are also performed by packages such as udev, acpid, apmd, [08:51] ifupdown and even module-init-tools [08:51] your goal is to replace that with something complex & functional enough to serve as a replacement [08:51] upstart is a single replacement for the standard UNIX services, combining their [08:51] functionality into a single daemon which can be easily congu [08:51] me: your goal is to replace that with something complex & functional enough to serve as a replacement [08:51] No, my goal is to replace it with something functional enough to serve as a replacement, not neccassarily complex. [08:52] i'll do more real digging into upstart & get back to you [08:52] i dont really know your functional capabilities yet [08:52] just scares me when codesize is the big bad voodoo monster threat [08:53] I used codesize as a poor example. [08:53] Should have picked a figure to more accurately represent complexity. [08:53] and i just hyperbolized rather injurously [08:54] DBUS is complicated. It has all sorts of cool things which are very useful, but few of which are neccassary for a system seemingly requriing only the sending of events and starting of named jobs. [08:54] Not to say we don't want a DBUS API to those, we do. [08:54] Just that it's not likely to be implemented in PID1, but likely as an out of process proxy. [08:57] Personally I think simply invoking an executable and waiting for a return value ==0 is simplier than introducing DBUS in both init and apache. [08:57] Which is where all this started. [09:07] no i agree with you a lot more now, dbus in upstart proper is a bad idea [09:08] i need to see how hard it'll be to make a proxy [09:08] aka try and make one === yankees26 [n=yankees2@ool-182c6007.dyn.optonline.net] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === yankees26 [n=james@ool-182c6007.dyn.optonline.net] has joined #upstart === yankees26 [n=james@ool-182c6007.dyn.optonline.net] has joined #upstart