=== Vlan [i=Vlan@c9.vl.net.ua] has left #upstart [] === Seveas [n=seveas@ubuntu/member/seveas] has joined #upstart === theCore_ [n=alex@ubuntu/member/theCore] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart [02:28] interesting [02:29] Jimmy has "quit" initNG [02:31] and some fun stats [02:32] development from scratch to 0.2.7 (which was in edgy) [02:32] 62 files changed, 19961 insertions(+) [02:32] development since then [02:32] 68 files changed, 18083 insertions(+), 9995 deletions(-) === j_ack [n=rudi@p508DAA7D.dip0.t-ipconnect.de] has joined #upstart [04:09] hi Keybuk [04:10] hihi [04:10] how is progress on upstart scripts? [04:11] pkt: for feisty? we haven't formally begun them yet, though they're all mapped out [04:11] ah, ok [04:12] I 'm hoping to use upstart for my private (LFS-based) distro [04:12] current timeline [04:12] 0.3.2 today if I can [04:12] that fixes all of the "rushed" code in 0.2.7, and introduces a stable IPC layer, etc. [04:13] nice to hear that :-) [04:13] then I start on the proper features listed in the wiki for the 0.3 milestone [04:13] https://launchpad.net/upstart/+milestone/0.3 === pkt looks ... [04:14] most of those make changes to the job structure that we wanted to do the startup scripts [04:15] so I hope to have those done over the next week or two after 0.3.2 [04:15] leaving a few weeks to do the boot scripts themselves [04:16] ah, ok so you suggest to take a look again in a few weeks correct? [04:16] so the first run of those should be done by Feb 8th [04:16] btw, have you looked at depinit? [04:18] no, URL? [04:18] wait a sec .. [04:21] ha! found it http://www.nezumi.plus.com/depinit/ [04:21] It has some interesting features [04:21] like using different signals to stop daemons and shells [04:21] reliable loggers (from daemontools) etc [04:22] of course it is primitive and never had a development community with size > 1 [04:22] but it has some nice ideas to get inspiration from [04:24] never seen that one before [04:25] mostly only old LFSers know about it [04:26] btw, the author released a newer version and probably forgot to update the page [04:27] so the last (known to me) version is probably http://www.nezumi.plus.com/depinit/depinit-0.1.5.tar.bz2 [04:27] tbh, from a glance at the features list, there's not much there that'd be useful to us [04:28] a lot of it is to do with being a dependency-based init system, which upstart is expressly not [04:28] well some of its "side" features are interesting [04:29] like pipelines between daemons for reliable logging [04:30] I 'll probably try to port some of the interesting stuff to upstart [04:30] (assuming I 'm able to base my system on it first) [04:30] yeah, that bit's kinda interesting [04:36] <_ion> Would 'state' work as the 'FOO'? [04:36] <_ion> It's somewhat ambiguous, admittedly. [04:47] "the 'FOO'" ? [05:00] <_ion> https://lists.ubuntu.com/archives/upstart-devel/2006-December/000200.html === maro [n=mark@0x55511dab.adsl.cybercity.dk] has joined #upstart === j_ack [n=rudi@p508DAA7D.dip0.t-ipconnect.de] has joined #upstart [07:48] hrm [07:48] Keybuk, what was the alternative to the Profiles spec? [07:49] Flags [07:49] there's no spec for that one yet [07:49] and what did it involve? passing parameters on the kernel command line? [07:52] profiles, iirc, involves defining lists of jobs either by include or exclude [07:53] so you'd have the "with networking" profile which would include jobs that are excluded by the "without networking" profile,e tc. [07:53] those profiles would have to be defined elsewhere [07:53] they're a bit like existing runlevels, or initng goals [07:53] and would have to be maintained by hand [07:53] yes, I wrote a spec for that [07:53] *nods* [07:53] Flags was an alternate idea [07:54] they'd be states that were either up or down, and set by the kernel by default [07:54] uh, kernel command-line [07:54] obviously ;p [07:54] so you could have a networking flag, a multi-user flag, etc. [07:55] I'd definitely prefer the profiles idea [07:55] jobs can then say "if FLAG" or "unless FLAG" [07:55] the advantage to flags is they're more flexible [07:55] FOO (network-up until network-down if networking) or if multi-user [07:56] but, when we write a gui to configure upstart, it would have to detect which bootloader is in use and modify it's configuration file [07:56] to set the kernel command line [07:56] ah no :) [07:56] flags are just command-less jobs [07:56] so there's an /etc/event.d/networking that has "start on startup" in it [07:56] or something like that, anyway [07:57] which flags were up or down is the only thing dictated by the kernel command line [07:57] which is the same with profiles; which profile you're in is dictated by the kernel command line [07:57] the difference is the method of inclusion of jobs into them [07:57] profiles is defined by seperate files [07:57] flags are defined within the job file [07:57] mmm [07:59] you've lost me :) [07:59] heh [07:59] I need to write the spec [07:59] or wasabi does :p [08:03] I don't particularly favour or disfavour either of them [08:03] i'd certainly prefer profiles [08:04] Hmmm. [08:04] lemmie load that back into my head [08:04] it's long been swapped out [08:05] I think I have a natural tendency to suport, as much as possible, alterting the obvious parts of the configuration without modifying the job files themselves. [08:05] modifying the job files themselves introduces an upgrade issue. [08:06] Hmm. Cept that isn't an issue. [08:06] HMMM. [08:06] Well, flags would require some modification of job files, definitely [08:06] So, a flag would be a job named 'flag-networking' or something. And the actual network scripts would define a level between flag-networking started and flag-networking stopped [08:07] if profiles are stored in a configuration file, then that still has the same upgrade issue [08:07] you'd end up with conflicts modifying /etc/bootprofiles [08:07] Then you could use hte kernel commad line to make the system boot into a state where flag-networking is "started" [08:07] if they were directories of symlinks, otoh ... [08:07] Which is an unnatural state, as nothing starts flag-networking, ever, except that. [08:07] Yeah, Keybuk, that's why I just now realized it was a non-issue. [08:08] I don't think we want users modifying profiles. [08:08] but what if they want to disable services? [08:08] I think they'll end up being more of a tool for us. [08:08] like safe-mode is for windows. [08:08] AlexExtreme: define disable [08:09] does disable mean that "start JOB" will return "DISABLED" [08:09] stop a service from starting [08:09] Maybe disabling services BY THE USER, is a completely seperate act from defining run states. [08:09] or does it mean it's just not started by its usual events? [08:09] and that a sysadmin can still start it manually? [08:09] yes they could still start it manually, just wouldn't be started at boot [08:09] How are we with adding a "disabled" line-item to the job definition? [08:10] And making an installer merge? [08:10] Which is what we already have I think. [08:10] And defining boot profiles using distro-supplied files. [08:10] Such as extra jub definitions. [08:11] lemmie write that out once. [08:11] that makes adding disabled equivalent to commenting out the start events :) [08:11] basically, all I'm concerned about is having a system where you can stop services from being started at boot [08:11] both are job file edits [08:11] something in SMF(?) I liked ... [08:11] if you list jobs on the kernel command line, they're started at boot automatically [08:12] if you list them with "!" in front, they're not started [08:12] Okay, lets wait a second, we have one up front question we need to clear up. [08:13] Should we EXPECT< during normal OS operation, the user to edit the distributed job files to change stuff. If yes: are we willing to take care of that during hte upgrade procedure. [08:13] There's not much doubt in my mind that "turning off a service" is normal OS operation. [08:13] And I suspect we'll have lovely and wonderful UI's that do it in the future. [08:13] I think that normal users will likely only want to disable or enable services/tasks [08:14] advanced users may wish to configure when services/tasks are run [08:14] and advanced users may also wish to modify them [08:14] Yes, we need to plan for the normal use case. [08:14] yes [08:14] Some guy sitting down at his server and flipping a switch to turn off apache. [08:14] That seems pretty understandable to me. [08:14] If apache is configured wrong, that's a bug. [08:15] Or if it starts at the wrong times so he has to edit the files, it's a bug. [08:15] (or a missing feature) [08:16] So, if we put "disabled" in the job file, we commit to making the upgrade scripts detect and remember it. [08:16] But I don't think editing the job file is the best way of doing it [08:19] I'm unsure if it is. Adding one line "disabled" isn't the hardest thing to build a merge for. [08:19] If there was a line that could be added in the job file, 'required', then that job would always be started, for example in udev's job file. Then anything that hasn't got required in could be overridden. Having a line like '!foo' in say, /etc/bootprofiles, under a profile section would disable foo in the profile it's listed under [08:20] why is udev required? [08:20] it was just an example ;) [08:20] one thing at a time. Are we going to merge job files? :) [08:21] wasabi: I tend to think that needs human intervention [08:21] It'd certainly be easier not to [08:21] e.g. user adds "limit core 0 0", distro adds "limit core 100 100" [08:21] you need a human to resolve that [08:21] Yup. I mean, we can merge SIMPLE stuff. [08:21] We could merge "disabled", and prompt on anything else. [08:22] if disabled in old; if !disabled in new; add disabled to new [08:22] Prompting wouldn't be good, there are distros (including Frugalware) that don't like having the upgrade process interactive [08:22] Prompting would only happen if the user changed stuff manually. [08:23] Other than disabled. [08:23] It'd make 'update-manager -d' more difficult, too [08:23] Ubuntu forbids prompting also [08:23] (well, where the user didn't change anything) [08:23] Prompting in ALL cases? Even if the USER went in and edited a text file? [08:23] Okay. Heh. [08:28] I would be fine with disabled being in the job files, and handled silent during upgrade. [08:28] I think that's fairly easy to do. [08:29] So, that takes care of the user being able to disable services from some UI of some sort. [08:29] On to profiles. Who are these for? [08:30] I don't, or can't yet see, any reason to support allowing users to write their own profiles. [08:30] I suspect we'll just want to use these to drive out stuff like a Safe Mode boot prompt. [08:30] Where X doesn't start, and maybe no networking or something. [08:31] Hmm. [08:31] I think at it's simpliest this could be accomplished by letting the distro define a few items they want to provide to their users, no X, no network, etc... and implement those in the job files THEY distribute. [08:32] And I think as Keybuk mentioned earlier, these are actually just flags. [08:32] All the examples I came up with in my head for using profiles can be solved with events :p [08:32] Gotta disappear for half an hour, bbl [08:32] These don't HAVE to be anything more than a set of flags which a service can choose to check to disable itself. === mbiebl [n=michael@e180122163.adsl.alicedsl.de] has joined #upstart [08:44] <_ion> Switch to libelektra and forget about any problems with syncing config files. ;-) [08:44] that looks a lot like gconf [08:44] which has the same problems :p [08:45] and it used leverage on the first paragraph of its website [08:45] hmm, there's nothing there that eliminates upgrade issues that I can see? === j_ack [n=rudi@p508DAA7D.dip0.t-ipconnect.de] has joined #upstart [08:51] <_ion> I was under the impression that there would be a system config tree (parts of which would be updated when upgrading software) and a user config tree (corresponding to /etc) which would override key/value pairs in the system config tree, but maybe i remembered wrong; i don't seem to find such information from the website. [08:52] yes [08:52] so then you update the system config tree [08:52] but if the user has logged in and used the app, they'd be using the user config tree instead [08:52] so wouldn't get the change [08:52] cf. gconf [08:53] <_ion> If that happens, the system hasn't been designed correctly. [08:53] <_ion> If root disables a certain job, the only thing that should be added to the user tree would be the "disabled" key. [08:54] bzzt [08:54] <_ion> Not a full copy of the settings from the system tree. [08:54] that way lies madness [08:54] because now you have an application that has to handle BOTH v1 and v2 config keys [08:54] which may have different formats [08:54] in fact, it has to handle every possible combination of every possible key it's ever used [08:54] also [08:54] what user doesn't open up every preference dialog for a look at some point or other? [08:54] if you only write when the user toggles ... do you delete the key from the user tree if they put it back to the default? [08:55] AND to make matters worse [08:55] if you don't copy the entire tree [08:55] <_ion> Valid points. [08:55] you now have the "I configured my app, was perfectly happy with it, AND AN UPGRADE CHANGED THE WAY IT WORKED!!(*"(*(*" problem [08:56] simply because the user didn't look at that page, or didn't toggle that option on/off, ect. [09:00] difficult problem :p [09:00] <_ion> So it seems that whatever we do (re: the "updated config file" issue, out of upstart's context), we lose. :-) [09:01] <_ion> Every path seems to have compromises. [09:12] back [09:21] All I can say is that we simply add a file in /etc containing a list of services that the user *doesn't* want to start, and upgrade wouldn't touch that. The file would be updated by a config gui or by a command line tool like gentoo's rc-update. === jonib1 [n=jonas@ua-83-227-144-18.cust.bredbandsbolaget.se] has joined #upstart === jonib1 [n=jonas@ua-83-227-144-18.cust.bredbandsbolaget.se] has joined #upstart === juergbi [n=juerg@80-219-19-246.dclient.hispeed.ch] has joined #upstart