OpenRC

OpenRC
Original author(s)Roy Marples
Developer(s)OpenRC Developers
Initial release5 April 2007; 17 years ago (2007-04-05)
Stable release
0.54[1] / 1 April 2024; 2 months ago (1 April 2024)
Repository
Written inC,[2] Shell
Operating systemLinux, FreeBSD, NetBSD
Size~1550 KB
TypeInit daemon
License2-clause BSD license
Websitewiki.gentoo.org/wiki/Project:OpenRC

OpenRC is a dependency-based init system for Unix-like computer operating systems. It was created by Roy Marples, a NetBSD developer who was also active in the Gentoo project.[3][4] It became more broadly adopted as an init system outside of Gentoo following the decision by some Linux distributions not to adopt systemd.[5][6][7]

OpenRC booting Artix Linux
Booting process

Adoption

OpenRC is the default init system and/or process supervisor for:

OpenRC is an available init system and/or process supervisor for:

Design

OpenRC is made up of several modular components, the main ones being an init (optional), the core dependency management system and a daemon supervisor (optional). It is written in C and POSIX-compliant shell, making it usable on BSD and Linux systems.

The core part of OpenRC handles dependency management and init script parsing. OpenRC works by scanning the runlevels, building a dependency graph, then starting the needed service scripts. It exits once the scripts have been started. By default, OpenRC uses a modified version of start-stop-daemon for daemon management.[10]

Init scripts share similarities with scripts used in sysvinit, but offer several features to simplify their creation. Scripts are assumed to have start(), stop() and status(); and the system uses variables already declared to create the default functions.[11] The depend function is used to declare dependencies to other services that would be done with LSB headers in sysvinit. Configuration and mechanism are separated with configuration files in the conf.d directory and init files in the init.d directory.

Openrc-init first appeared in version 0.25 as an optional replacement for /sbin/init. This can replace Gentoo Linux's default init system, sysvinit.[12]

Supervise-daemon first appeared in version 0.21 giving OpenRC supervision capabilities. It can be enabled in the init script for supervise-daemon to start and monitor a daemon. Several other daemon supervisors are supported, including runit[13] and s6.[14]

Features

  • Portable between Linux, FreeBSD, and NetBSD
  • Parallel service startup (off by default)
  • Dependency-based boot-up
  • Process segregation through cgroups[15]
  • Per-service resource limits (ulimit)
  • Separation of code and configuration (init.d / conf.d)
  • Extensible startup scripts
  • Stateful init scripts (has it started already?)
  • Complex init scripts to start multiple components (Samba [smbd and nmbd], NFS [nfsd, portmap, etc.])
  • Automatic dependency calculation and service ordering
  • Modular architecture and separation of optional components (cron, syslog)
  • Expressive and flexible network handling (including VPN, bridges, etc.)
  • Verbose debug mode

References

  1. ^ "Release 0.54". 1 April 2024. Retrieved 23 April 2024.
  2. ^ "openrc", Analysis Summary, Ohloh, retrieved 2012-03-10
  3. ^ "History". GitHub. Retrieved 6 April 2020.
  4. ^ "Developers". Retrieved 6 April 2020.
  5. ^ "Manjaro OpenRC 0.8.13 - reinventing init without systemd". DistroWatch Weekly, Issue 612. 1 June 2015. Retrieved 2020-04-04.
  6. ^ "5 Differences Between TrueOS & Linux". 23 February 2018. Retrieved 6 April 2020.
  7. ^ "Improving TrueOS: OpenRC". Retrieved 6 April 2020.
  8. ^ "Distro's forum - Which init system is Artix's default?". Retrieved 2023-10-30.
  9. ^ "Devuan ASCII 2.0.0 stable release". Retrieved 2021-01-18.
  10. ^ "user guide". GitHub. Retrieved 6 April 2020.
  11. ^ "service script guide". GitHub. Retrieved 6 April 2020.
  12. ^ "OpenRC/openrc-init". February 6, 2023. Retrieved October 7, 2023.
  13. ^ "runit guide". GitHub. Retrieved 6 April 2020.
  14. ^ "s6 Guide". GitHub. Retrieved 6 April 2020.
  15. ^ "CGroups Support". Retrieved 5 April 2020.

Read other articles:

Official script of the Serbian language Serbian alphabet redirects here. For the Serbian Latin alphabet, see Gaj's Latin alphabet. Serbian Cyrillic alphabetСрпска ћирилицаScript type Alphabet Time period9th century – presentLanguagesSerbianRelated scriptsParent systemsEgyptian hieroglyphs[1]Phoenician alphabetGreek alphabet (partly Glagolitic alphabet)Early Cyrillic alphabetSerbian Cyrillic alphabetChild systemsMacedonian alphabet (partly)Montenegrin Cyrillic (partly)ISO …

Non-profit organization This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Grameen Foundation – news · newspapers · books · scholar · JSTOR (August 2013) (Learn how and when to remove this message) Grameen FoundationFounded1997; 27 years ago (1997)FounderAlex CountsType501(c)(3)FocusPovertyLocationWashington, D.C., USA 38°54′14″N 77°02…

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「弐」…

American legislative district Map of Massachusetts House of Representatives' 2nd Franklin district, based on the 2010 United States census. Massachusetts House of Representatives' 2nd Franklin district in the United States is one of 160 legislative districts included in the lower house of the Massachusetts General Court. It covers parts of Franklin County, Hampshire County, and Worcester County.[1] Independent Susannah Whipps of Athol has represented the district since 2015.[2]&#…

Association football club in England Football clubOakwoodFull nameOakwood Football ClubNickname(s)The OaksFounded1962GroundTinsley Lane, CrawleyChairmanMark Gilbert (acting chairman)ManagerMark GilbertLeagueSouthern Combination Division One2022–23Southern Combination Division One, 14th of 17 Home colours Away colours Oakwood Football Club are a football club based in Crawley, England. They were established in 1962 and joined the Sussex County League Division Three in 1984. In 2005–06 season,…

此條目可参照英語維基百科相應條目来扩充。 (2021年5月6日)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记{{Translated page}}标签。 约翰斯顿环礁Kalama Atoll 美國本土外小島嶼 Johnston Atoll 旗幟颂歌:《星條旗》The Star-Spangled Banner約翰斯頓環礁地…

For the toyline, see Robo Machine. British comic book story The Robo MachinesAn early advertisement for The Robo Machines comic strip.Publication informationPublisherIPC MagazinesScheduleWeeklyTitle(s)Eagle10 November 1984 to 15 March 198529 March to 29 July 1985FormatsOriginal material for the series has been published as a strip in the comics anthology(s) Eagle.Genre Science fiction Publication date10 November 1984 – 29 July 1985Main character(s)Leader-1Cy-KillCreative tea…

2020年夏季奥林匹克运动会波兰代表團波兰国旗IOC編碼POLNOC波蘭奧林匹克委員會網站olimpijski.pl(英文)(波兰文)2020年夏季奥林匹克运动会(東京)2021年7月23日至8月8日(受2019冠状病毒病疫情影响推迟,但仍保留原定名称)運動員206參賽項目24个大项旗手开幕式:帕维尔·科热尼奥夫斯基(游泳)和马娅·沃什乔夫斯卡(自行车)[1]闭幕式:卡罗利娜·纳亚(皮划艇)[2…

1942 Pearl Buck book. Dragon Seed First editionAuthorPearl S. BuckCountryUnited StatesLanguageEnglishGenreHistorical novelPublisherJohn DayPublication dateJanuary 1942Media typePrint (Hardback, paperback, Audiobook & ebook)Pages378ISBN978-1559210331Preceded byChina Sky Followed byThe Promise  Dragon Seed: A Novel of China Today is a novel by Pearl S. Buck first published in 1942. It describes the lives of Chinese peasants in a village outside Nanjing, China, immediat…

Benedict CumberbatchCBECumberbatch di San Diego Comic-Con 2019LahirBenedict Timothy Carlton Cumberbatch19 Juli 1976 (umur 47)Hammersmith, London, InggrisKebangsaanBritaniaAlmamater Universitas Manchester Akademi Musik dan Seni Drama London PekerjaanAktorTahun aktif1998–sekarangKaryaDaftar lengkapSuami/istriSophie Hunter ​(m. invalid year)​Anak3Orang tuaTimothy Carlton (bapak)Wanda Ventham (ibu)PenghargaanDaftar lengkap Cumberbatch's voice dari program BBC…

Subspecies of mammals Arabian leopard Leopard at Ein Gedi, Israel Conservation status Critically Endangered  (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Carnivora Suborder: Feliformia Family: Felidae Subfamily: Pantherinae Genus: Panthera Species: P. pardus Subspecies: P. p. nimr Trinomial name Panthera pardus nimr(Hemprich and Ehrenberg), 1833 Distribution of the Arabian leopard Synonyms P. p. jarvisl…

1918 book by Lyubomir Miletich Ethnic map of Adrianople Thrace in 1912 according to the academic Lyubomir Miletich. The areas with a Bulgarian majority are coloured green, Turkish red, and Greek brown. Balkan Wars boundaries. The Destruction of the Thracian Bulgarians in 1913 (Bulgarian: Разорението на тракийските българи през 1913 г., Razorenieto na trakiyskite balgari prez 1913 g., also translated as The Devastation[1] or The Ruin of the Thracian Bul…

English composer and organist(1711–1779) William Boyce by John Russell, 1776 William Boyce (baptised 11 September 1711 – 7 February 1779) was an English composer and organist. Like Beethoven later on, he became deaf but continued to compose. He knew Handel, Arne, Gluck, Bach, Abel, and a very young Mozart, all of whom respected his work. Life William Boyce by Thomas Hudson, ca. 1745 Boyce was born in London, at Joiners Hall, then in Lower Thames Street, to John Boyce, at the time a joiner an…

Online archive of e-preprints arXivType of siteScienceAvailable inEnglishOwnerCornell UniversityCreated byPaul GinspargURLarxiv.orgCommercialNoLaunchedAugust 14, 1991; 32 years ago (1991-08-14)Current statusOnlineISSN2331-8422OCLC number228652809 arXiv (pronounced as archive—the X represents the Greek letter chi ⟨χ⟩)[1] is an open-access repository of electronic preprints and postprints (known as e-prints) approved for posting after moderation…

Докладніше: Втрати силових структур внаслідок російського вторгнення в Україну У статті наведено список втрат українських військовослужбовців у російсько-українській війні, починаючи з 1 липня 2022 року по 16 липня 2022 року (включно). Втрати з українського боку публікуютьс…

Kansas City Chiefs Musim saat iniDidirikan 1959; 65 tahun lalu (1959)Bermain di Stadion ArrowheadKantor pusat di Kansas City, Missouri Kansas City Chiefs logoKansas City Chiefs wordmarkLogoWordmarkAfiliasi liga American Football League (1960–1969) Western Division (1960–1969) National Football League (1970–sekarang) American Football Conference (1970–sekarang) AFC West (1970–sekarang) Seragam saat iniWarna timMerah, emas, putih      MaskotK. C. Wolf (1989–seka…

One of two offspring produced by the same pregnancy For other uses, see Twin (disambiguation) and Twins (disambiguation). Identical twins Mark and Scott Kelly, both former NASA astronauts Twins are two offspring produced by the same pregnancy.[1] Twins can be either monozygotic ('identical'), meaning that they develop from one zygote, which splits and forms two embryos, or dizygotic ('non-identical' or 'fraternal'), meaning that each twin develops from a separate egg and each egg is fert…

American independent professional wrestling promotion This article is about the Florida-based independent promotion. For the Germany-based independent promotion also known as wXw, see Westside Xtreme Wrestling. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: World Xtreme Wrestling – news · newspapers · books · schola…

Operasi BadaiBagian dari Perang Kroasiadan Perang BosniaPeta Operasi BadaiForces:   Kroasia   RKS   Bosnia dan HerzegovinaTanggal4–7 Agustus 1995LokasiKroasia dan Bosnia dan HerzegovinaHasil Kemenangan Kroasia Pertempuran dalam perang kemerdekaan berakhir Sebagian besar teritori Krajina diambil alih Kroasia Eksodus warga sipil Serbia Perjanjian Erdut, berakhirnya perang Kemenangan strategis Bosnia: Bosnia Barat dihapuskan Berakhirnya pengepungan BihaćPerubahanwil…

Advent hymn by Valentin Thilo Mit Ernst, o MenschenkinderAdvent hymnValentin ThiloTextby Valentin ThiloLanguageGermanComposed1557 (1557)Published1642 (1642)Melodyⓘ Mit Ernst, o Menschenkinder (literally: With seriousness, you Children of Man) is an Advent hymn by Valentin Thilo [de]. It partly paraphrases the call to penitence by John the Baptist. The text was first published in 1642 in the collection Preußische Festlieder. The different melody that later became popular…