Search Results: "ag"

23 September 2006

Steve McIntyre: Film Review / Comment: An Inconvenient Truth

Just seen this at the Arts Cinema in central Cambridge this evening. It's a well-presented documentary showing Al Gore's lecture tour where he talked about the problem of global warming. He delivers a compelling message, with a fair amount of data to back up his conclusions. I only had a couple of issues with the movie: In my opinion, the conclusions from the movie are quite clear:

Simon Richter: Roadshow

The Global Security Alliance just held a small roadshow in Munich. Too bad their audience consisted only of a handful goths who were already aware of the issues, and a number of fairly bewildered people who did not get the message at all. So I'd consider this show a failure. It would have helped a lot if there had been any kind of information material, or if the clips shown on the big screens would have been translated to German. At least I learned about TXTmob.

Randall Donald: Into the pot you go!

So I guess I should make notice that both current and legacy drivers supporting Xorg 7.1 are now in unstable after initially sitting in experimental.


In related news, NVIDIA released beta drivers, 1.0-9625 with initial support for GLX_EXT_texture_from_pixmap plus a few other features. I am currently running packages of these and will be making them available shortly. Props out to the Debian subversion maintainers and utility creators.


Smell ya later

Andrew Pollock: [meme] My top 10 Unix shell commands

Update It helps if you give sort a -n option apparently. The results make a bit more sense now. Well it kind of varies, because I have a weird mode of operation. I SSH into caesar, in my cupboard, which is my local general purpose box. It runs a screen session, which includes an SSH session with daedalus, my server co-located back in Australia, where I read my email via mutt, and then I do really local stuff on my laptop, icarus.
daedalus
     37 fg
     32 ls
     31 sudo
     19 blog
     12 cd
      7 df
      6 vi
      6 mutt
      5 less
      4 man
Unsurprisingly, fg wins out here, because I'm usually in mutt and just background it to get a shell prompt. blog is a funky shell script I wrote to better manage blog posts with Blosxom.
caesar
    152 sudo
     61 ls
     38 less
     35 cd
     27 screen
     19
     13 dpkg
     11 apt-cache
     10 man
      9 ssh
icarus
156 play 103 ls 54 sudo 45 ssh 12 cd 12 apt-cache 10 dpkg 8 wget 8 host 6 telnet play ranks so highly because I was recently listening to all of the audio files that come with Asterisk to stitch together a particularly hellish purgatory for telemarketers.
So it's interesting seeing how the different machines get totally different use.

David Moreno Garza: Music in my brain on the last weeks

Tato, Raquel and me headed to Cat Power’s concert last Wednesday. Luckily, I won two tickets for the concert on a morning radio show (it was around 6 am, so when the speaker asked a question, I had plenty of time to open my notebook, confirm the answer on Wikipedia and call the station; because of the time, the call entered quite quickly, on the 3rd try). It was a double, so Tato had to buy his own ticket. Chan Marshall, Cat Power’s real name, is quite interesting. She asked previously that people people should be quiet while performing because of her stage fright (!). She also likes to cut her songs abruptly complaining on the sound of the piano, tunes on the guitar, her voice, the accoustics on the place, etc. We also realized that her live performance is completely depressive, and the ambient of people (quiet, clapping to support her, proposals to marry her from girls) makes an outstanding and not common at all atmosphere. She played for like two hours in complete absense of noise (except when people clapped or shouted to ask for some songs, or to laugh at her jokes -like the one asking people what would be a better place to live, Mexico or Japan, guess the answer of people-). You could even hear beer bottles rolling in the halls and people doing like “shhhh”: the silence was terrific. She also played the day after, but that date was announced like one week before and didn’t get much people. No pics since from previous experiences, photos of my cell phone are completely sucky in darkness. Other concerts I’ve gone in the last weeks: The Strokes and Babas nicos. Next concerts I’ll be going: Yeah Yeah Yeahs (that’ll be fucking awesome, can’t wait for it). MiG and his girlfriend went yesterday to watch the Kung Fu Monkeys, a nice ska-punk band from Tijuana, but we were too tired to show up in the place. The day before, on Thursday, he also invited us to watch some surf bands, which scene is awesome in Mexico City, it was really nice and we had the chance to dance a bit. :-)

Erich Schubert: GPL verified in german court

Harald Welte (of gpl-violations.org and netfilter fame) won in court against D-Link. Apparently D-Link had already agreed to fulfill the GPL by offering the source code on their FTP server; the lawsuit was about them having to pay the costs of Harald Welte (buying their product, reverse engineering, legal costs). Don't emphasize D-Link here much - they did comply with the GPL quickly after being notified of their violation (apparently). They have to pay 3500 Euro for his costs and give him some numbers on sales of the product. It's not a "bad, bad thieves" result, but basically a "comply with the license right away, or pay for the enforcement". J rg Schilling, the upstream of cdrecord - which has now been replaced by "wodim", "write optical disc media" - has frequently been claiming that Debians interpretaion of the GPL is incorrect, or even that 2 of the GPL doesn't hold. And he claims that this judgement still didn't verify the GPL. (Just as everybody expected, he trolled in the heise newsticker article on this). Seems he's really trying to make a bad impression with everybody. To me, the judge did do some pretty clear statements: he said that 2 is an integral part of the license, so while you might be able to debate its validity, it will render the whole license invalid, so you're then infringing on the authors copyright. If you want to use it, you have to obey the full license as is, or obtain a different license. There is no "the license is broken, so I can use it just as I'd like to". And by dsitributing it without having obtained a different license, you are accepting the license as is.

Junichi Uekawa: Using soap in ruby.

In hacking apt-listbugs and getting something usable out ofdebian.org machines, and to fight against the inertia of notallowing direct access to db-h, I decided to give theSOAPbackend a try.Apart from the problem of non-existing documentation and non-functional implementation,with much help from Don Armstrong, I got something working.Due to the fact that only one HTTP request is required for obtaining the bunch of bug reports, it might be actually suited for apt-listbugs. I'm a bit worried about the load, tho'.soap4r was also very much painful to work with, with its lack of useful documentation.

Erich Schubert: Meme time: top 10 shell commands

Note: the script posted originally had a bug in sorting, as seen here. I used history 1 awk ' print $2 ' awk 'BEGIN FS=" " print $1 ' sort uniq -c sort -nr head -10 (this is for zsh history; the fix is the -n flag to sort)
    254 ls
    141 cd
    131 vim
     86 svn
     77 grep
     70 apt
     65 sudo
     60 ssh
     51 rm
     45 dpkg
Boring meme. I work on files, edit files, use subversion, grep and eventually run apt-get or dpkg. "apt" is a small script of mine which will call apt-cache search or "sudo aptitude" as appropriate; somewhat merging the functionality of these into one command). Followers up:
     45 cat
     43 man
     33 debuild
     28 apt-cache
     18 dch
debuild, dch - yeah, I have been doing some Debian work recently. Mostly SELinux, like a week ago or so. [Clint, I didn't invent that double-awk pipeline. I just fixed the sort issue. I'm currently more annoyed by awk because it uses isatty() on regular files, which in turn does ioctl, which in turn triggers SELinux audit errors...]

Lucas Nussbaum: Random chat using XMPP/Jabber, anyone ?

A Random Chat applet hit digg recently. It allows you to chat with a random stranger visiting the website at the same time as you. It’s a good idea, but it would really be much better to have something similar based on Jabber (and maybe it could become a Jabber killer app’ ?) Some thoughts: So, is somebody interested in working on this ? It would be quite easy to do with XMPP4R or another Ruby library. (This was from my list of things that I would really like to see implemented, but I won’t have time to work on it myself) Related links:

MJ Ray: Now on the west coast

Finally, I'm on the west coast of England, after living most of my life in East Anglia. I'm going to be slow-to-respond for the next few days while I update various location pointers (at least 36 of them, by current estimate) and then I'll describe the whole tortured saga. I didn't want to do so while it was happening, in case solicitors read this. It is so cool being able to look out of my office window and see Wales across the sea, though.

Jordi Mallach: What about GNOME 2.16 and Debian?

I haven't heard too many people asking if GNOME 2.16 will make etch. Maybe everyone just assumes it will, because the latest transitions have been pretty good, or maybe everyone just assumes it won't because nobody would expect Debian to ship with a current GNOME release, right? Or maybe Debian is immerse in what looks like the beginnings of a civil war, and that is more interesting. The Debian GNOME team has been preemtively working on GNOME 2.16, though, as the release clock is ticking. Lo c has spent a big amount of time revamping the packaging of GTK+ and Pango, finally resulting in sane source packages people can look at. Joss, Guilherme, Lo c and others have worked on the rest of the Developer Platform packages, which is now ready for testing in experimental. The evolution team has also been rocking and all the associated packages are ready to go in experimental as well. The GNOME 2.16 status page still shows quite some red for Desktop packages, which are now being worked on, with GTK+ 2.10 in place. But we still haven't decided if we can go ahead and attempt a 2.14 -> 2.16 transition in time for etch. Our biggest concern are the known problems of GTK 2.10's file chooser regarding cancelling of operations. Apparently, other distributions are getting bad bug reports due to these, so we need to be very careful about it. We know there are people working on an upstream fix as I write, but we don't know when there'll be a patch for GTK+ and libgnomeui available. If we learn it's due soon, we might start speaking to our release managers about the possibility of starting a transition. If we have no news, it'll probably be too late.

Martin F. Krafft: Motivation

Colour me na ve, but I disagree that Debian is facing a crisis caused by dunc-tank.org. First of all, stuff like this has been going on for years, and I've been personally involved in cases where money was given to developers to work on specific aspects of Debian, though it's always been up to the receiver whether to announce it or not. I hope this does not come as a surprise to you. Second, there are two issues: funding developers, and our DPL engaged in the process in a way that's not obviously independent from Debian to everyone. I think the heated debate around the latter is a mere function of the emotional issues related to the former, so I'll only concentrate on the funding aspect. When people like Joey loudly protest about where the fun has gone, I start to wonder (again) about motivation. Everyone of us who contributes to Debian does so because of some kind of motivation, whatever it may be. In my case, that motivation is technical excellence: Debian is in a position to avoid hacks and do things right, and it's a joy to be part of a community that seems to think alike, that likes to be perfectionist, pedantic, clean, academic, advanced, you name it. I am also mighty proud of Debian, of what we've achieved, of what we are. Lastly, Debian powers every single computer I administer (and the number would be far lower if it wasn't for Debian), and our operating system is how I earn my living. To me, the issue of funding developers is tangential to the development of Debian. Why should it matter that s/he gets paid by the project and I don't? I'm still doing the same work as before, and I am still doing it for the same reasons. Note that we're talking about well-defined, limited use of funds, not employment contracts. When people say that "money corrupts", I think they're taking the easy way out. Money doesn't corrupt, people corrupt in the presence of money. I'll go out on a limb and claim that a person affected by an allergy will probably rather cure the allergy than to avoid the things to which s/he's allergic. Go figure. Even though I've never really cared much for stable releases, I can understand many of our users when they ask us to get along and release "etch", and I really doubt we can do it in time just chugging along like we've been doing it in the past. Of course, Debian is all about "releasing when it's ready", and we don't know yet whether paid release managers are going to enable us to release on time and when it's ready, but isn't it worth a try? I was also opposed to the idea of paying our release managers when it first came up. However, I've managed to change perspective and am now supportive of it: we are not hiring them, they will not be Debian employees; we are raising funds for them to be able to dedicate their full time to the final, tiresome stretch just before a release, without existential worries. We are helping them to move our project along. Especially since our release team has been one of the more open teams in Debian, being quick to respond to questions and training others in the Art of Releasing Debian, I feel rather good about this particular, well-defined and limited use of our funds. All other things aside, here are my top three reasons why (I think) we really want to release "etch" on 4 December 2006, in increasing order:
  • we can be even more proud of our project than before because we've bashed one of the main, negative reputations of our project.
  • we'll have a first instance of proof that a huge and chaotic project like Debian can meet a deadline. I think this alone would be a major achievement.
  • Lars will have to tattoo his arm with our release names.
If it weren't for the last one... :) NP: Kammerflimmer Kollektief / Cicadidae

Joey Hess: The Top Ten Unix Shell Commands

I'm mostly participating in this particular thing because it seems to have changed since I tried this last. For one thing, ikiwiki didn't exist last time I tried it, also I don't remember seeing svn on the list last time.
joey@kodama:~>history 1 awk ' print $2 ' awk 'BEGIN  FS=" "   print $1 ' sort uniq -c   sort -r  head -10 
    229 l
    129 cd
    126 e
     48 mutt
     43 fg
     42 svn
     40 w
     26 ..
     24 ./ikiwiki.pl
     22 build
I use zsh, so this summarises several thousand lines of history shared amoung all my zsh sessions, and also .. is used to go up a directory. l is my shorthand for ls; e is my shorthand for "vim or the closest available substitute"; w is mostly a nervous habit since this is a single user machine -- my hands tend to type w and ls at the terminal when my mind is off working on something; build is my dpkg-buildpackage wrapper.

Steve McIntyre: Tenerife conference (continued)

I already started describing my time at JSLULL, the Free Software conference at La Laguna in Tenerife. It's been a few days since, and I'm now back at home and ready to summarise the rest. I should apologise up front that my memory of people's names is awful... :-( The slides from the talk are on my website now, in case anybody is interested, and my photos are up too. The original plan for Tuesday afternoon was to run a small Bug Squashing Party in one of the computer labs at ULL, but unfortunately this week the main internet link from ULL to Madrid had failed. It's a little difficult to work on bugs when you can't even get to the list, so we changed tack. Instead, I led a small workshop for interested people, demonstrating how to create Debian packages. About 8 people got involved, taking turns to drive the keyboard, ask and answer questions. People were keen to learn; there is a very active group in the University running the labs and other machines, and they were hoping to create packages of some of their own software to make maintenance and installation easier. I'm glad to help! ULL We went out to one of the beaches near Santa Cruz that evening, then headed back into the city later on for drinks and dinner. We had a very animated conversation about the use of Free Software in schools and local government, with the Spanish people and Knut Yrvin from Skolelinux trading interesting stories about their experiences. On Wednesday morning, a group of us rented a car and headed inland to visit El Teide, the huge volcano that dominates the Tenerife skyline. It's the first time I've ever looked down on clouds from the passenger seat of a car! We headed almost to the top, and visited the desolate plain just down from the last summit. It looked almost like a lunar landscape, untouched by water... Clouds! Later on that day, I headed back to the hotel in Santa Cruz and then on to the airport to catch my return flight to England. Carlos (again) had given up his time to chauffeur me around, and we chatting about all sorts of things while he drove south. Unfortunately, the flight was delayed by several hours because of mechanical problems. I would have been happy enough to have simply waited at the airport, but Carlos was having none of it. :-) He insisted we should go and have dinner together; we went for drinks at a beach bar, then up to his home village for a lovely meal. Eventually I caught my plane at 2:30am, and got back to England just in time to catch the rush hour traffic on the M25. Me and Carlos I spent a lovely couple of days in Tenerife, spending time and making friends with the very enthusiastic local Free Software hackers. I'd love to go back again soon and see more of the place. Thanks to all the of the people involved, you were very welcoming!

Matt Brown: FreeRadius patch superfluous

Yesterday’s patch for FreeRadius turns out to be superfluous, as the functionality is already present, its just undocumented! I submitted the patch to the FreeRadius bug tracking system (#392) and got back a quick reply from Alan DeKok saying the following:
It isn’t well documented, but it’s already supported, via the
EAP-TLS-Require-Client-Cert attribute. This allows you to have
the cert requirement on a per-realm, or per-user basis.
Oh well, at least the patch didn’t take too long to write! I had seen the code that handles the EAP-TLS-Require-Client-Cert attribute, but I couldn’t find any references to it elsewhere in the daemon, so I assumed it was a fragment that was unused and ignored it. Moral of the story: Assume less and spend more time understand the code you’re patching!

22 September 2006

Alexander Schmehl: A small forward...

... from the debian-user-list: From: Jason Martens <xxx@xxx.xx>
To: debian-user <debian-user@lists.debian.org>
Subject: Debian Love
Date: Fri, 22 Sep 2006 11:08:23 -0500

It seems that morale is a bit low among the developers right now, so I thought it might be nice for all of us users to remind them why Debian is such an awesome project. I love Debian. I love how the system works. I love the quality of the packages. I love that it lets me do what I want to do, and does not try to dictate how to do things.

To all of you Debian developers, thank you. I really appreciate the work you do. Keep it up!
The other mails in the thread are nice to read, too :)

Joey Hess: house

Well, I got the house. No problems at closing, lots of work to do before I can move in. I was a bit worried that it would be too dark, but now that all the frumpy old-person blinds and stuff are taken out, and we've done some cleaning (thanks, Maggie!) it's reasonably light and is starting to feel like a place I can live. Closing on a house is to me feels a lot like flying to Europe alone -- get up early, make sure you have all your documentation in order, make sure you're on time, say hi to someone at the desk, and to someone who's your inadvertent companion in all this, then some pain, and then everything is different.

Jonathan McDowell: A change is as good as a rest.

My Athlon XP 2000+ died at the end of July; it appeared to the be the CPU. I had a 1GHz EPIA-M Via board sitting around, so I installed that and figured I'd have a look at sexy Core 2 Duo kit eventually. I did, and I've ordered some, but I suspect it's never turning up and I have to cancel the order and place a new one (combination of wanting an Intel G965 based board given their decent Free driver support as well as a silent case that wasn't in stock but was a lot cheaper than elsewhere). However, I cracked and bought an XP 2200+ CPU off eBay. The Via just worked out too slow and the hot weather has passed so I'm less concerned about heat generation. Even though this CPU is only slightly faster than what I've had for the past 3 years the 2 months on a slower box makes me really appreciate it. Aside from the raw speed increase the Athlon also has 4 times as much level 2 cache (256k vs 64k), twice as much RAM (the Via only has 1 DIMM slot so had 512M, while my Athlon mobo has 2 so gets 1G) and a real video card (the Via CLE266 seemed quite poor; even when the system was unloaded I was sometimes seeing a couple of seconds lag in focus-follow-mouse. My ATI 9200SE is much nicer. And doesn't steal system memory.) Plus there's the fact I can put my 4 port serial card back in. Living with 1 port is so primitive. :) I know that what I've got now is still a lot less powerful that what lot's of people have on their desktop (and conversely I know people who'd be glad of the Via), but my point is more about just how grateful I am for it after only a couple of months on something slower.

Scott James Remnant: Upstart can now replace sysvinit

Today I reached another milestone in the development of upstart, the packages in universe can now replace the existing sysvinit package. Before trying this, make sure your installation is up to date as we’ve had to split out some parts of sysvinit into a new sysvutils package. If you’re up to date, and want to try it out, install the upstart and upstart-compat-sysv packages from universe. Note that the first reboot after you’ve installed the packages (from sysvinit to upstart) will be a little tricky … use reboot -f. If your system boots and shuts down normally, everything’s working just fine. Note that both will be somewhat more quiet than you’re used to, unless you have usplash running. Throughout the rest of this entry, I’ll try to answer some of the questions and comments that I’ve received since the last post. Events As I talked about previously, upstart is an event-based init daemon. Events are the primary force for having your services and tasks started and stopped at the appropriate time and in the appropriate order. So what are events and where do they come from? (Note that this part is under development, so may change in later releases). Events are just simple strings that may be sent by any process when something it is tracking the state of changes. They have no state or longevity, and if, when queued, they do not cause any job state changes, then they have no effect unless they are sent again. Jobs can list which events cause them to be started if they are not already running and which events cause them to be stopped if they are running. Multiple start and stop events may be listed, in which case the first to occur changes the job until the next one occurs. upstart itself generates the following system events: The shutdown tool included in the package also causes one of the following events to be sent once the “shutdown” event has been handled: Jobs also generate events whenever they change state, this is the primary source of events for ordering: And as mentioned, any other process on the system may send events through the control socket or just by using initctl trigger EVENT. For now this is just the event string, however it’s intended that the event may include other details including environment variables and even file descriptors. Typical example To clarify how it all hangs together, here’s an example (using fictional names) of how the tasks and events can be arranged to provide race-free mounting of filesystems. By breaking this job into these small tasks, we can see how the pieces fit together. Because everything is now done on events, there are no race conditions; we know that any filesystem listed in /etc/fstab will be checked and mounted. The only reason they wouldn’t be is if there’s an error of some kind, and that means you have larger problems anyway and the system administrator would have a shell to fix it. Of course, the moment they finish checking the filesystem and mount it, the boot process would carry on. There’s no reason that any of these events need to be generated by the upstart daemon itself, it can receive them from any other daemon on the system such as udev, acpid, etc. This keeps the focus of the init daemon narrow. A large part of the future development will be working out exactly what kinds of events we want init itself to generate, what kinds we want to come from elsewhere, and what the contents of an event can be. Getting Involved If you want to get involved with trying to nudge the direction of upstart development, you can join the upstart-devel mailing list at http://lists.netsplit.com/ Or if you just want to grab the source code, tarballs are published at http://people.ubuntu.com/\scott/software/upstart/ and the bzr archive is at http://bazaar.launchpad.net/\keybuk/upstart/main

Scott James Remnant: Upstart in Universe

upstart is a replacement for the init daemon, the process spawned by the kernel that is responsible for starting, supervising and stopping all other processes on the system. The existing daemon is based on the one found in UNIX System V, and is thus known as sysvinit. It separates jobs into different “run levels” and can either run a job when particular run levels are entered (e.g. /etc/init.d/rc 2) or continually during a particular run level (e.g. /sbin/getty). The /etc/init.d/rc script is also based on the System V one (and is in the sysv-rc package), it simply executes the stop then start scripts found in /etc/rcN.d (where N is the run level) in numerical order. Why change it? Running a fixed set of scripts, one after the other, in a particular order has served us reasonably well until now. However as Linux has got better and better at dealing with modern computing (arguably Linux’s removable device support is better than Windows’ now) this approach has begun to have problems. The old approach works as long as you can guarantee when in the boot sequence things are available, so you can place your init script after that point and know that it will work. Typical ordering requirements are: This worked ten years ago, why doesn’t it work now? The simple answer is that our computer has become far more flexible: We’ve been able to hack the existing system to make much of this possible, however the result is chock-full of race conditions and bugs. It was time to design a new system that can cope with all of these things without any problems. What we needed was an init system that could dynamically order the start up sequence based on the configuration and hardware found as it went along. Design of upstart upstart is an event-based init daemon; events generated by the system cause jobs to be started and running jobs to be stopped. Events can include things such as: In fact, any process on the system may send events to the init daemon over its control socket (subject to security restrictions, of course) so there is no limit. Each job has a life-cycle which is shown in the graph below: The two states shown in red (“waiting” and “running”) are rest states, normally we expect the job to remain in these states until an event comes in, at which point we need to take actual to get the job into the next state. The other states are temporary states; these allow a job to run shell script to prepare for the job itself to be run (“starting”) and clean up afterwards (“stopping”). For services that should be respawned if they terminate before an event that stops them is received, they may run shell script before the process is started again (“respawning”). Jobs leave a state because the process associated with them terminates (or gets killed) and move to the next appropriate state, following the green arrow if the job is to be started or the red arrow if it is to be stopped. When a script returns a non-zero exit status, or is killed, the job will always be stoped. When the main process terminates and the job should not be respawned, the job will also always be stopped. As already covered, events generated by the init daemon or received from other processes cause jobs to be started or stopped; also manual requests to start or stop a job may be received. The communication between the init daemon and other processes is bi-directional, so the status of jobs may be queries and even changes of state to all jobs be received. How does it differ from launchd? launchd is the replacement init system used in MacOS X developed as an “Open Source” project by Apple. For much of its life so far, the licence has actually been entirely non-free and thus it has only become recently interesting with the licence change. Much of the goal of both systems appears initially to be the same; they both start jobs based on system events, however the launchd system severly limits the events to only the following: Therefore it does not actually allow us to directly solve the problems we currently have; we couldn’t mount filesystems once the “filesystem checked” event has been recived, we couldn’t check filesystems when the block device is added and we certainly couldn’t start daemons once the complete filesystem (as described by /etc/fstab) is available and writable. The launchd model expects the job to “sit and wait” if it is unable to start, rather than provide a mechanism for the job to only be started when it doesn’t need to wait. Jobs that need /usr to be mounted would need to spin in a loop waiting for /usr to be available before continuing (or use a file in a tmpfs to indicate it’s available, and use that modification as the event). This is not especially surprising given that Apple have a high degree of control over both their hardware and the actual underlying operating system; they don’t need to deal with the wide array of different configurations that we have in the Linux world. Had the licence been sufficiently free at the point we began development of our own system, we would probably have extended launchd rather than implement our own. At the point Apple changed the licence, our own system was already more suitable for our purposes. How does it differ from initng? Initng by Jimmy Wennlund is another replacement init daemon intended to replace the sysvinit system used by Linux. It is a dependency-based system, where upstart is an event-based system. The notion of a dependency-based system is interesting to talk about at this point. Jobs declare dependencies on other jobs that need to happen before the job itself can be started. Starting the job causes its dependencies to be started first, and their dependencies, and so on. When jobs are stopped, if running jobs have no dependencies, they themselves can be stopped. It’s a neat solution to the problem of ordering a fixed boot sequence and the problem of keeping the number of running processes to a minimum needed. However this means that you need to have goals in mind when you boot the system, you need to have decided that you want gdm to be started in order for it, and its dependencies, to be started. Initng uses run levels to ensure this happens, where a run level is a list of goal jobs that should be running in that run level. It’s also not clear how the dependencies interact with the different types of job, a dependency on Apache would need the daemon to be running where a dependency on “checkroot” would need the script to have finished running. Upstart handles this by using different events (“apache running” vs. “checkroot stopping”). Again while interesting, Initng does not solve the problems that we wanted to solve. It can reorder a fixed set of jobs, but cannot dynamically determine the set of jobs needed for that particular boot. A typical example would be that if the only dependency on the job that configures networking is the mount network filesystems job, then should that job fail or notbe a goal (e.g. because there are no network filesystems to be mounted) the result is that network devices themselves will not be configured. You could make everything a goal, and just use the dependencies to determine the order, however this is less efficient than just ordering the existing sysv-rc scripts (which can be done at install time). Another example is that often you simply don’t know whether something is a dependency or not without reading other configuration, for example the mount network filesystems may be a dependency of everything under /usr or may just be a dependency of anything allowing the user to login if it just mounts /home. The difference in model can be summed up as “initng starts with a list of goals and works out how to get there, upstart starts with nothing and finds out where it gets to.” How does it differ from Solaris SMF? SMF is another approach to replacing init developed by Sun for the Solaris operating system. Like initng it’s a dependency-based system, so see above for the differences between those systems and upstart. SMF’s main focus is serive management; making sure that once services are running, they stay running, and allowing the system administrator to query and modify the states of jobs on the system. Upstart provides the same set of functionality in this regard, services are respawned when they fail and system administrators can at any time query the state of running services and adjust the state to their liking. Will it replace cron, inetd, etc? The goal of upstart is to replace those daemons, so that there is only one place (/etc/event.d) where system administrators need to configure when and how jobs should be run. In fact, the goal is that upstart should also replace the “run event scripts” functionality of any daemon on the system. Daemons such as acpid, apmd and Network Manager would send events to init instead of running scripts themselves with their own perculiar configuration and semantics. A system administrator who only wanted a particular daemon to be run while the computer was on AC power would simply need to edit /etc/event.d/daemon and change “on startup” to “on ac power”. What about compatibility? There’s a lot of systems administrators out there who have learned how Linux works already and will not want to learn again immediately, there’s also a large number of books that cover the existing software and won’t cover upstart for at least a couple of years. For this reason, compatibility is very important. upstart will continue to run the existing scripts for the forseeable future so that packages will not need to be updated until the author wants. Compatibility command-line tools that behave like their existing equivalents will also be implemented, a system administrator would never need to know that crontab -e is actually changing upstart jobs. Does it use D-BUS?
“To D-BUS people, every problem seems like a D-BUS problem.” —Erik Troan
The UNIX philosophy is that something should do just one job, and do it very well. upstart’s one job is starting, supervising and stopping other jobs; D-BUS’s one job is passing messages between other jobs. D-BUS does provide a mechanism for services to be activated when the first message is sent to them, thereby starting other jobs. Some people have taken this idea and extended it to suggest that all a replacement init system need do is register jobs with D-BUS and turn booting into a simple matter of message parsing. This seems wrong to me, D-BUS would need to be extended to supervise these services, provide means for them to be restarted and stopped; as well as deal with being process #1 which means cleaning up after children whose parent’s have died, etc. It seems far simpler to arrange for D-BUS to send an event to init when it needs a service to be started, and focus on being a very good message passing system. The IPC mechanism used by upstart is not currently D-BUS because of various problems, however it’s always been expected that even if init itself doesn’t communicate with D-BUS directly, there would be a D-BUS proxy that would ensure messages about all init jobs and events would be given to D-BUS and D-BUS clients could send messages to init to query and change the state of jobs. What is the implementation plan? Because this is process #1 we are changing, we want to make sure that we get it right. Therefore instead of releasing a fully-featured daemon and configuration to the world, we’re developing it in the following stages:
  1. Principal development; at the end of this stage the daemon has been implemented and can manage jobs as described.
  2. Replacement of /sbin/init while running the existing sysv-rc scripts. This is the shake-down test of the daemon, can it perform the same job as the existing sysvinit daemon without any regressions?
  3. /etc/rcS.d scripts replaced by upstart jobs. These consitute the majority of tasks for booting the system into at least single-user mode, and contain many of the current ordering problems and race conditions. If the daemon solves the problems here, it will be a success.
  4. Other daemon’s scripts replaced by upstart jobs on a package-by-package basis; this will be an ongoing effort during which upstart will continue running the existing sysv-rc scripts as well as its own jobs. During this time the event system may be tweaked to ensure it truly solves the problems we need.
  5. Replcement of cron, atd, anacron and inetd. This will happen alongside the above and result in a single place to configure system jobs.
  6. Modification of other daemons and processes to send events to init instead of trying to run things themselves.
The current plan is that we will be at least part of the way into stage #3 by the time edgy is released, with that release shipping with upstart as the init daemon and the most critical rcS scripts being run by it to correct the major problems For edgy+1 we hope to have completed stage #5 and be at least part of the way into the implementation of stage #6. From the start of development of edgy+2, no new packages will be accepted unless they provide upstart jobs instead of init scripts and init scripts will be considered deprecated. What state is it in now? The init daemon has been written and is able to manage jobs as described above, receiving events on the control socket to start and stop them. This has now been uploaded to the Ubuntu universe component in the upstart package for testing before it becomes the init daemon. We welcome any experienced users who want to help test this; install the package and follow the instructions in /usr/share/doc/upstart/README.Debian to add a boot option that will use upstart instead of init. If your system boots and shut downs normally (other than a slightly more verbose boot without usplash running) then it is working correctly. Other types of events will be added as required during development and testing. Currently only a basic client tool (initctl) has been written, compatibility tools such as shutdown will be written over the next week or two before it replaces our sysvinit package.

Next.

Previous.