/srv/irclogs.ubuntu.com/2008/04/28/#upstart.txt

RyanPriorHow can I use upstart to control things like apache? Right now I'm using invoke-rc.d but upstart seems like the direction Ubuntu is moving in.01:27
=== suihkulo1ki is now known as suihkulokki
* rgl waves15:41
rglwhat is the best way to disable the tty?  edit  /etc/default/console-setup, remove /etc/event.d/tty*, anything else?15:42
Keybukthat would work15:42
rglbut what is *the way*? :D15:44
Keybukthere isn't one yet15:45
Keybukyou could edit it and comment out the "start on" line15:45
rglif I remove the tty* files, will htye be recreted after package update?15:45
Keybukno15:47
Keybuk(assuming dpkg)15:47
rglah;  so I'll remove them.  thx :)15:49
sadmac2Keybuk: did you see my email?15:56
Keybuksadmac2: err?15:57
sadmac2Keybuk: I sent you an email15:57
sadmac2Keybuk: did it not make it?15:58
Keybukwhat was the subject?15:58
sadmac2Keybuk: "States as Flags"15:58
Keybukoh, yes, I have that one15:59
Keybukhaven't read it yet15:59
sadmac2ah.16:00
wasabiKeybuk: congrats on the awesomeness. good to see the stuff we talked about finally seeing the light of day16:08
Keybukwasabi: yeah, is good :p16:20
wasabii like how you refined the instance/job stuff.16:22
Keybukthat stuff is working rather well now16:22
wasabii love it when ideas like that come together, and you know, if you look hard enough, it can be elegant... and then it is16:23
Keybukthere's still a few bits that aren't quite perfect yet16:23
Keybukbut I'm hoping they'll clean themselves up over time16:25
wasabiim still curious about some of the problems we had with figuring out how to properly track large event sequences16:26
Keybukhow do you mean?16:27
wasabioh, like, something that only should be active between the time the network interface is up and when it is about to go down.16:28
Keybukthat bit's easy, no?16:28
Keybuk  from interface-up16:28
Keybuk  until interface-down $IFACE16:28
wasabiit's easy, except for when the 'it is up' state can be forgotten, for instance, by manually restarting the event.16:28
Keybukahh16:28
Keybukyeah, the whole forgotten thing16:28
wasabisince it's a state machine that is independent from the system itself.16:28
wasabiI have a hunch that it's going to lead to problems... but I'm not sure.16:29
Keybukme neither16:29
KeybukI guess whatever knows the network is up or down knows16:30
Keybukor maybe that doesn't either16:30
wasabiSo like, you have apache running, it is network-up to network-down.... network-up happens, so apache starts.... but eh user manually restarts apache. state machine is cleared.... now when the network goes down, apache doesn't.16:30
wasabiunless the up/down part are independent.16:31
wasabiwhich makes the whole state part not very useful or interesting.16:31
Keybukthey're independant16:31
wasabifrom interface-up until interface-down    ?      that can trigger stop on interface-down without ever triggering interface-up before?16:31
Keybuka more interesting question is, if the sysadmin manually started apache, _should_ it be automatically stopped?16:31
Keybukat the moment, yeah16:32
wasabiYeah. I dunno. I think that in the specific case of apache relying on the network, yeah....16:32
Keybukstates is a definite 0.5.x problem16:33
sadmac2Keybuk: the email I sent is pertinent to this16:34
sadmac2to states rather16:34
Keybukindeed16:35
sadmac2and now its lunch time16:35
* sadmac2 goes for food16:35
Keybukwasabi: I'm pretty sure Upstart is almost as good a service and task manager as it can be now16:37
Keybukwhich was my goal for 0.516:37
wasabiYeah. I think so too.16:37
Keybukthe next job is to make sure we have the events/states/etc. stuff right16:37
Keybukthe only bit I'm not 100% happy with is the blocking of commands16:38
Keybukit's not _quite_ right16:38
Keybukand it's because there's a wimp out16:38
Keybukwhen you do "start apache HTTPS=true", the HTTPS is not immediately stored in the job environment16:38
Keybukinstead it's in the "next environment" which isn't copied over until the job is actually starting16:38
Keybukthat way, if you do "stop --no-wait apache && start apache HTTPS=true" to restart with SSL enabled16:39
Keybukthe pre-stop and post-stop scripts are run _without_ that variable16:39
Keybukso stop scripts always match start scripts16:39
Keybuk_but_ there's only one blocking command16:39
Keybukso if you stop while starting, the start immediately cancels16:39
Keybukand I'm not happy with that16:39
Keybukif the blocking command was queued, that would feel right I think16:40
Keybukbut need to think about it16:40
Keybukcertainly, if the blocking command was queued, "watershed" jobs would be trivial to implement :p16:40
Keybuknih_list_add (job->next_blocking, &request->entry);16:40
Keybukjob->restart = TRUE;16:40
Keybuk:p16:40
wasabiwhere's uds at this next time?16:43
wasabias part of my employeement contract i got the owner here to send me to two conferences a year, related or unrelated to what I do at work. =)16:43
KeybukPrague16:44
wasabiOooh.16:44
Keybukin three weeks16:44
wasabiOh. Darn.16:44
Keybukafter that it's SF in the first week of December16:44
wasabiMan, Prague would be awesome.16:45
wasabiHope ya'll have fun.16:45
KeybukI expect to be busy :(16:46
Keybukgoing to try and skate around the city though16:47
=== keesj is now known as azerty
=== Amaranth_ is now known as Amaranth
=== azerty is now known as keesj
Keybukwhat should the D-Bus object path of the only instance of a non-instance job be?20:41
wasabiwhat is it for an instance?21:54
Keybukthe name of the instance21:54
wasabijob/instance  ?21:54
wasabijob21:54
Keybuk/com/ubuntu/Upstart/jobs/getty/tty121:54
Keybukfor example21:54
wasabioh. Just leave off the last part of the path21:54
Keybukthat's the job though21:54
wasabiOh. Hah.21:55
wasabi"default" =)21:55
ion_"instance"21:55
ion_"amigarules"21:55
wasabii would make up a special name for it, so it's namespace is equiv to instances themselves.21:55
Keybukyeah, some special name21:56
wasabimakes enumeration and stuff easier21:56
* Keybuk is having a very strange valgrind issue at the moment21:56
Keybukit's complaining about reachable data22:00
Keybukwhich doesn't make sense given the context22:01
Keybukthe pointer is reachable by a *far* bigger block it's not complaining about22:01
Keybuk\o/22:26
Keybukhttp://bioshock.netsplit.com/~scott/yay-dbus.png22:26
ion_:-)22:29
ion_Did you manage to resolve the valgrind issue?22:45
ion_keybuk: Hilight22:48
Keybukion_: no22:51
KeybukI just suppressed it22:51
Keybukit errors that the dbus path is still reachable22:52
Keybuk(ie. not freed)22:52
Keybukbut it's reachable by an even bigger object that's not freed22:52
Keybukwhich is reachable by the hash table of objects that aren't freed22:52
Keybukso I don't quite see why it's complaining about the bit at the bottom of the stack22:52
ion_Heh22:53
ion_It's understandable ‒ it's not as if computers are deterministic machines. :-)22:53
Keybukif I change the "complicated" function call with nih_sprintf22:54
Keybukit's fine22:54
Keybukthe only different that I can tell is that one uses malloc() and the other realloc()22:54
wasabiSo... does upstart have aspirations to be in other distros? Or is that a concern you don't care to think about?23:51
wasabiOh, guess it doesn't matter. We have com.redhat crap in there too23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!