LWN.net Logo

Debian switching to upstart

Debian switching to upstart

Posted Sep 7, 2009 0:20 UTC (Mon) by jengelh (subscriber, #33263)
In reply to: Debian switching to upstart by salimma
Parent article: Debian switching to upstart

openSUSE remains to use LSB-compliant sysvinit init.d scripts. (And IIRC, one reason is that Upstart alone does not make the boot any faster - the scripts are the bottleneck.) Secondarily, openSUSE already supports starting boot scripts in parallel, either using startpar(8) or make(1)'s dependency mechanism, for some years and thus not block where there is no dependent ordering enforced by scripts themselves (= does not make sense to start NFS when you have no network interfaces up).


(Log in to post comments)

Precisely — Speed is not the main factor (but a nice side effect)

Posted Sep 7, 2009 1:39 UTC (Mon) by gwolf (subscriber, #14632) [Link]

What has been thoroughly discussed is that the current SysV init system is best suited for servers where you can assume quite a bit of things — Kind of hardware you can count on, general network topology, etc.

Of course, there are gross hacks, such as network-manager, but it makes no sense to wait (on the default installation, at least) for a user to be logged in to nm-applet ask network-manager to be so kind as to choose a profile.

What switching to upstart will provide is not about booting faster, but about booting smarter — And about behaving smarter. There is no use on having i.e. a server that binds to a specific network interface running if said interface is not available and configured, right? So that server should declare it depends on "eth0 gets a valid IP address", or on "getting 192.168.1.15". Then, when the kernel fires that event, upstart will tell the server to start.

Your Ethernet switch died? Well, that might push the network down. If so, the daemon in question should know it is now useless and shut itself down, so there are no unexpected, meaningless failure messages (of course, the admin should be notified about th problem — But about the fact that the problem happened in the network connection, not in the daemons' space. That will help him understand WTF. And of course, said daemons will come back to life once networking is restored.

The fact that upstart will allow for faster boots due to parallelizing all processes that wait for a specific event is just... A nice side effect.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds