Upstart (software)
| Upstart | |
|---|---|
| Original author | Scott James Remnant |
| Developer | Canonical Ltd. |
| Release | August24, 2006;19 years ago(2006年08月24日) |
| Final release | |
| Written in | C |
| Operating system | Linux |
| Type | Init daemon |
| License | GPLv2 |
| Website | wiki |
| Repository | |
Upstart is a discontinued 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. In 2014, Upstart was placed in maintenance mode, and other init daemons, such as systemd, were recommended in place of Upstart. Ubuntu moved away from Upstart with the release of version 15.04 (Vivid Vervet) in favor of migrating to systemd. As of June 2024, there have been no updates released for Upstart since September 2014.[2]
Rationale
[edit ]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 flash drives and other portable storage or network devices while the machine is running
- The discovery and scanning of new storage devices, 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.[3]
Design
[edit ]Upstart operates asynchronously; it handles starting of the tasks and services during boot and stopping them during shutdown, and also supervises the tasks and services while the system is running.
Easy transition and perfect backward compatibility with sysvinit were the explicit design goals;[4] accordingly, Upstart can run unmodified sysvinit scripts. In this way it differs from most other init replacements (beside systemd and OpenRC), which usually assume and require complete transition to run properly, and do not support a mixed environment of traditional and new startup methods.[5]
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.[6] By default, Upstart includes bridges for socket, dbus, udev, file, and dconf events; additionally, more bridges are possible.[7]
Adoption
[edit ]Linux distributions and other operating systems based on the Linux kernel which use Upstart as the default init system:
- Upstart is used in Google's ChromeOS and ChromiumOS.[8]
Linux distributions that support or have supported Upstart to some extent, but moved away since or no longer use it as their default init system:
- Debian decided that systemd would be the default init system beginning with the Jessie release,[9] after considering switching to Upstart.[10] It was eventually removed from the Debian archives in December 2015.[11]
- Upstart was first included in Ubuntu in the Ubuntu 6.10 "Edgy Eft" release in late 2006, replacing sysvinit. Ubuntu 9.10 "Karmic Koala" introduced native Upstart bootup as of Alpha 6.[12] In turn, after the Debian project decided to adopt systemd on a future release in 2014, Mark Shuttleworth announced that Ubuntu would begin plans to migrate to systemd itself to maintain consistency with upstream.[13] Ubuntu finished the switch to systemd as its default init system in version 15.04 (Vivid Vervet), with the exception of Ubuntu Touch.[14]
- In Fedora 9, Upstart replaced sysvinit, however, systemd replaced Upstart in the Fedora 15 release.[15] [16]
- Red Hat includes Upstart in their Red Hat Enterprise Linux 6 release.[17] As a result, it is also used by RHEL 6 variants such as CentOS, Scientific Linux, and Oracle Linux. For RHEL 7, systemd is used instead.[18] [19]
- openSUSE included Upstart in version 11.3 Milestone 4, but not as default.[20] systemd replaced Upstart, as the default init system in openSUSE 12.1.[21]
- 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.[22]
- Upstart replaced the sysvinit in Maemo 5 for Nokia Internet tablets.[23]
The latest release was version 1.13 on July 11, 2014. Since December 2018 the project website says that Upstart is in maintenance mode only, and recommends other init systems, such as systemd.[24]
See also
[edit ]References
[edit ]- ↑ "1.13.2 "It looks lush from the side" : Series 1.x : upstart". Launchpad . Retrieved 2022年01月01日.
- ↑ "Upstart: Overview". Archived from the original on 2022年10月06日. Retrieved 2021年04月28日.
- ↑ Remnant, Scott James (2006年08月26日). "Upstart in Universe". Netsplit. Archived from the original on 2013年11月13日. Retrieved 2009年09月12日.
- ↑ "Upstart", Launch Pad, Ubuntu
- ↑ "Discussion of design and implementation of Upstart", Ubuntu Wiki, Canonical
- ↑ "The Upstart Cookbook: initctl emit". Canonical. Archived from the original on 14 February 2014. Retrieved 26 January 2014.
- ↑ "The Upstart Cookbook: Bridges". Canonical. Archived from the original on 14 February 2014. Retrieved 26 January 2014.
- ↑ Chrome OS User-Land Boot Design , retrieved 2024年06月04日
- ↑ The Debian technical committee vote concludes, Lwn.net, 2014年02月11日, retrieved 2014年02月11日
- ↑ Petter Reinholdtsen (2009年09月05日), The future of the boot system in Debian, Debian.org
- ↑ RM: upstart -- RoQA; unmaintained, debian.org, 2015年12月18日, retrieved 2016年01月26日
- ↑ "Upstart", About, Ubuntu
- ↑ Shuttleworth, Mark. "Losing graciously". Archived from the original on 22 March 2014. Retrieved 14 February 2014.
- ↑ VividVervet/ReleaseNotes, 2015年04月24日
- ↑ 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日.
- ↑ Poettering, Lennart (2013年06月19日), Red Hat Summit talk about systemd in RHEL 7 is now available online, Google Plus, retrieved 2013年12月31日
- ↑ Tim Burke (2012年06月27日), "Red Hat Enterprise Linux Roadmap Highlights" (PDF), presentation, archived from the original (PDF) on 2013年01月18日
- ↑ 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日
- ↑ Garrett, Matthew (2009年06月10日), Palm Pre, archived from the original on 2009年12月23日, retrieved 2009年07月09日
- ↑ Fremantle, Maemo, retrieved 2009年08月24日
- ↑ "Archive of upstart.ubuntu.com on Dec 30, 2018". Archived from the original on 2018年12月30日.
External links
[edit ]- Official website
- Upstart on Launchpad
- Upstart Cookbook Archived 2012年11月03日 at the Wayback Machine
- Upstart Cookbook Archived 2012年10月18日 at the Wayback Machine
- Init systems comparison: part 1 and part 2 at LWN.net
- Init systems comparison table