Upstart (software): Difference between revisions
Line 57: | Line 57: | ||
Other: |
Other: |
||
* [[Debian]] considered switching to Upstart for the ''squeeze'' release,<ref>{{citation |author=Petter Reinholdtsen |url=http://lists.debian.org/debian-devel-announce/2009/09/msg00003.html |title=The future of the boot system in Debian |publisher=Debian |date=2009-09-05 |accessdate=2009-10-12}}</ref> |
* [[Debian]] considered switching to Upstart for the ''squeeze'' release,<ref>{{citation |author=Petter Reinholdtsen |url=http://lists.debian.org/debian-devel-announce/2009/09/msg00003.html |title=The future of the boot system in Debian |publisher=Debian |date=2009-09-05 |accessdate=2009-10-12}}</ref> and is discussing again the choice of init system for the ''jessie'' release.<ref>{{citation |author=Marco d'Itri |url=http://lists.debian.org/debian-devel/2013/10/msg00651.html |title=Proposal: switch init system to systemd or upstart |publisher=Debian |date=2013-10-25 |accessdate=2013-10-29}}</ref><ref>{{cite web|url=http://www.phoronix.com/scan.php?page=news_item&px=MTU4Mzk |title=Voting Proposed For Debian Jessie's Init System |publisher=Phoronix.com |date=2014-01-25 |accessdate=2014-02-09}}</ref> |
||
* [[openSUSE]] included Upstart in version 11.3 Milestone 4, but not as default.<ref>{{citation |url=http://www.h-online.com/open/news/item/OpenSUSE-gets-an-Upstart-964636.html |archiveurl=http://web.archive.org/web/20131208184815/http://www.h-online.com/open/news/item/OpenSUSE-gets-an-Upstart-964636.html|archivedate=8 December 2013|title=OpenSUSE gets an Upstart |publisher=The H |date=2010-03-26 |accessdate=2010-04-04}}</ref> systemd replaced Upstart, as the default init system in openSUSE 12.1.<ref>{{citation |url=http://h-online.com/-1380033 | archiveurl=http://web.archive.org/web/20120420063250/http://www.h-online.com/open/news/item/openSUSE-12-1-arrives-with-systemd-and-Btrfs-1380033.html | archivedate=20 April 2012|title=openSUSE 12.1 arrives with systemd and Btrfs |author=Chris von Eitzen |publisher=The H |date=2011-11-16 |accessdate=2011-11-16}}</ref> |
* [[openSUSE]] included Upstart in version 11.3 Milestone 4, but not as default.<ref>{{citation |url=http://www.h-online.com/open/news/item/OpenSUSE-gets-an-Upstart-964636.html |archiveurl=http://web.archive.org/web/20131208184815/http://www.h-online.com/open/news/item/OpenSUSE-gets-an-Upstart-964636.html|archivedate=8 December 2013|title=OpenSUSE gets an Upstart |publisher=The H |date=2010-03-26 |accessdate=2010-04-04}}</ref> systemd replaced Upstart, as the default init system in openSUSE 12.1.<ref>{{citation |url=http://h-online.com/-1380033 | archiveurl=http://web.archive.org/web/20120420063250/http://www.h-online.com/open/news/item/openSUSE-12-1-arrives-with-systemd-and-Btrfs-1380033.html | archivedate=20 April 2012|title=openSUSE 12.1 arrives with systemd and Btrfs |author=Chris von Eitzen |publisher=The H |date=2011-11-16 |accessdate=2011-11-16}}</ref> |
||
Revision as of 18:17, 11 February 2014
Original author(s) | Scott James Remnant |
---|---|
Developer(s) | Canonical Ltd. |
Initial release | August 24, 2006 |
Stable release | 1.11
/ November 14, 2013 |
Repository | |
Written in | C |
Operating system | Linux |
Type | Init daemon |
License | GPLv2 |
Website | upstart |
Upstart is an event-based replacement for the traditional init daemon – the method by which several Unix-like computer operating systems perform tasks when the computer is started. It was written by Scott James Remnant, a former employee of Canonical Ltd.
Rationale
The traditional init process was originally only responsible for bringing the computer into a normal running state after power-on, or gracefully shutting down services prior to shutdown. As a result, the design is strictly synchronous, blocking future tasks until the current one has completed. Its tasks must also be defined in advance, as they are limited to this prep or cleanup function. This leaves it unable to handle various non-startup-tasks on a modern desktop computer elegantly, including:
- The addition or removal of USB pen drives and other portable storage / network devices while the machine is running
- The discovery and scanning of new storage devices, without locking the system, especially when a disk may not even power on until it is scanned
- The loading of firmware for a device, which may need to occur after it is detected but before it is usable
Upstart's event-driven model allows it to respond to events asynchronously as they are generated.[1]
Design
Upstart operates asynchronously — as well as handling the starting of tasks and services during boot and stopping them during shutdown, it supervises them while the system is running.
Easy transition and perfect backwards compatibility with sysvinit were explicit design goals.[2] As such, Upstart is able to run sysvinit scripts unmodified. In this way it differs from most other init replacements (besides systemd and OpenRC), which usually assume and require complete transition to run properly, and don't support a mixed environment of traditional and new startup methods.[3]
Upstart allows for extensions to its event model through the use of initctl to input custom, single events, or event bridges to integrate many or more complicated events.[4] By default, Upstart includes bridges for: socket, dbus, udev, file, and dconf events, but more (e.g. a Mach ports bridge, or a devd (found on FreeBSD systems) bridge) are possible.[5]
Adoption
As Upstart matures, it is intended that its role will expand to the duties currently handled by cron, anacron, the at command's daemon (atd), and possibly (but much less likely) inetd.
Distributions in which Upstart is enabled by default:
- Upstart was first included in Ubuntu in the 6.10 (Edgy Eft) release in late 2006, replacing sysvinit. Ubuntu 9.10 (Karmic Koala) introduced native Upstart bootup as of Alpha 6.[6]
- Upstart replaced the sysvinit in Maemo 5 for Nokia Internet tablets.[7]
- Upstart is used in HP's webOS for the Palm Pre, Palm Pixi (both before Palm was bought out by HP), HP Veer, and HP Pre 3 smart phones, along with the HP TouchPad tablet.[8]
- Upstart is used in Google's Chrome OS.[9]
Distributions that used Upstart in some versions but moved to systemd in later versions:
- Upstart replaced sysvinit in Fedora 9, and functioned in the same manner as it did in Ubuntu, i.e. it replaces sysvinit, while retaining the existing scripts. However, Upstart has been replaced by systemd in Fedora 15 release.[10][11]
- Red Hat includes Upstart in their Red Hat Enterprise Linux 6 release.[12] As a result, it is also used by RHEL 6 variants such as CentOS, Scientific Linux, and Oracle Linux.
Other:
- Debian considered switching to Upstart for the squeeze release,[13] and is discussing again the choice of init system for the jessie release.[14][15]
- openSUSE included Upstart in version 11.3 Milestone 4, but not as default.[16] systemd replaced Upstart, as the default init system in openSUSE 12.1.[17]
See also
References
- ^ Remnant, Scott James (2006-08-26). "Upstart in Universe". Netsplit. Retrieved 2009-09-12.
- ^ "Upstart", Launch Pad, Ubuntu
- ^ "Discussion of design and implementation of Upstart", Ubuntu Wiki, Canonical
- ^ "The Upstart Cookbook". Canonical. Retrieved 26 January 2014.
{{cite web}}
:|chapter=
ignored (help) - ^ "The Upstart Cookbook". Canonical. Retrieved 26 January 2014.
{{cite web}}
:|chapter=
ignored (help) - ^ "Upstart", About, Ubuntu
- ^ Fremantle, Maemo, retrieved 2009-08-24
- ^ Palm Pre, Live Journal, retrieved 2009-07-09
- ^ Software Architecture: Chromium OS design documents, Google, retrieved 25 January 2014
- ^ Fedora 14 Accepted Features, 2010-07-13, retrieved 2010-07-13
- ^ "Fedora defers systemd to F15". Linux Weekly News. 2010-09-14. Retrieved 2010-09-17.
- ^ "Deployment". Red Hat Enterprise Linux 6: Technical Notes. Red Hat. Retrieved 2013-12-31.
- ^ Petter Reinholdtsen (2009-09-05), The future of the boot system in Debian, Debian, retrieved 2009-10-12
- ^ Marco d'Itri (2013-10-25), Proposal: switch init system to systemd or upstart, Debian, retrieved 2013-10-29
- ^ "Voting Proposed For Debian Jessie's Init System". Phoronix.com. 2014-01-25. Retrieved 2014-02-09.
- ^ OpenSUSE gets an Upstart, The H, 2010-03-26, archived from the original on 8 December 2013, retrieved 2010-04-04
- ^ Chris von Eitzen (2011-11-16), openSUSE 12.1 arrives with systemd and Btrfs, The H, archived from the original on 20 April 2012, retrieved 2011-11-16
External links
- Home page
- Upstart on Launchpad
- Upstart Cookbook
- Upstart Cookbook
- Init systems comparison: part 1 and part 2 (LWN.net)