In Unix-like computer operating systems, init (short for initialization) is the first process started during booting of the operating system. Init is a daemon process that continues running until the system is shut down. It is the direct or indirect ancestor of all other processes and automatically adopts all orphaned processes. Init is started by the kernel during the booting process; a kernel panic will occur if the kernel is unable to start it or if it dies for any reason. Init is typically assigned process identifier 1.

In Unix systems such as System III and System V, the design of init diverged from the functionality provided by the init in Research Unix and its BSD derivatives. Up until the early 2010s,[1][failed verification] most Linux distributions employed a traditional init that was somewhat compatible with System V, while some distributions such as Slackware use BSD-style startup scripts, and other distributions such as Gentoo have their own customized versions.

Since then, most distros have employed a more modern init system, with most employing the init provided by the systemd project. Some distros have elected to create their own SystemV-init compatible system, such as Gentoo Linux's OpenRC and Void Linux's runit. These projects typically include features originally not in SystemV's init, such as multi-threading or interactive init. Most modern init systems are also able to dynamically start, stop and enable services after boot with prompting by the user.

Research Unix-style/BSD-style

Research Unix init runs the initialization shell script located at /etc/rc,[2] then launches getty on terminals under the control of /etc/ttys.[3] There are no runlevels; the /etc/rc file determines what programs are run by init. The advantage of this system is that it is simple and easy to edit manually. However, new software added to the system may require changes to existing files that risk producing an unbootable system.

BSD init was, prior to 4.3BSD, the same as Research UNIX's init;[4][5] in 4.3BSD, it added support for running a windowing system such as X on graphical terminals under the control of /etc/ttys.[6][7] To remove the requirement to edit /etc/rc, BSD variants have long supported a site-specific /etc/rc.local file that is run in a sub-shell near the end of the boot sequence.

A fully modular system was introduced with NetBSD 1.5 and ported to FreeBSD 5.0, OpenBSD 4.9 and successors. This system executes scripts in the /etc/rc.d directory. Unlike System V's script ordering, which is derived from the filename of each script, this system uses explicit dependency tags placed within each script.[8] The order in which scripts are executed is determined by the rcorder utility based on the requirements stated in these tags.

SysV-style

When compared to its predecessors, AT&T's UNIX System III introduced a new style of system startup configuration,[9] which survived (with modifications) into UNIX System V and is therefore called the "SysV-style init".

At any moment, a running System V is in one of the predetermined number of states, called runlevels. At least one runlevel is the normal operating state of the system; typically, other runlevels represent single-user mode (used for repairing a faulty system), system shutdown, and various other states. Switching from one runlevel to another causes a per-runlevel set of scripts to be run, which typically mount filesystems, start or stop daemons, start or stop the X Window System, shutdown the machine, etc.

Runlevels

The runlevels in System V describe certain states of a machine, characterized by the processes and daemons running in each of them. In general, there are seven runlevels, out of which three runlevels are considered "standard", as they are essential to the operation of a system:

  1. Turn off
  2. Single-user mode (also known as S or s)
  3. Reboot

Aside from these standard ones, Unix and Unix-like systems treat runlevels somewhat differently. The common denominator, the /etc/inittab file, defines what each configured runlevel does in a given system.

Default runlevels

Operating systemDefault runlevel
AIX2[10]
antiX5
Gentoo Linux3[11]
HP-UX3 (console/server/multiuser) or 4 (graphical)
Slackware Linux3
Solaris / illumos3[12]
UNIX System V Releases 3.x, 4.x2
UnixWare 7.x3

On Linux distributions defaulting to runlevel 5 in the table on the right, runlevel 5 invokes a multiuser graphical environment running the X Window System, usually with a display manager like GDM or KDM. However, the Solaris and illumos operating systems typically reserve runlevel 5 to shut down and automatically power off the machine.

On most systems, all users can check the current runlevel with either the runlevel or who -r command.[13] The root user typically changes the current runlevel by running the telinit or init commands. The /etc/inittab file sets the default runlevel with the :initdefault: entry.

On Unix systems, changing the runlevel is achieved by starting only the missing services (as each level defines only those that are started / stopped).[citation needed] For example, changing a system from runlevel 3 to 4 might only start the local X server. Going back to runlevel 3, it would be stopped again.

Other implementations

Traditionally, one of the major drawbacks of init is that it starts tasks serially, waiting for each to finish loading before moving on to the next. When startup processes end up Input/output (I/O) blocked, this can result in long delays during boot. Speeding up I/O, e.g. by using SSDs, may shorten the delays but it does not address the root cause.

Various efforts have been made to replace the traditional init daemons to address this and other design problems, including:

General

NameDeveloperLatest releaseLicenseNotes
VersionDate
BootScriptsGoboLinux Scripts Contributors[14]016.022017-08-16;[a]
busybox-initBruce Perens etc.[15][16][17][b]
dinitDavin McCall[18][c]
EpochEpoch Contributors[19]1.3.02015-06-24;[d]
finitJoachim Wiberg, etc.[20]4.16[20]2026-02-27;
ginitdS. M. Wood-Mattheusson[e]
InitngInitng Contributors[21]0.6.10.22007-03-25;[21][f]
launchdApple Inc.10.42005-04-29;(was APSL then AL2)[g]
OpenRCOpenRC Developers[h]
procdDaniel Golle, etc.[22]2026-03-25;
runitGerrit Pape, runit Developers[i]
Service Management Facility (SMF)Sun Microsystems5.102005-01-31;[j]
Shepherd[23]etc.[24][k]
s6Laurent Bercot[25][l]
systemdRed Hat[26]345 in 2018[27]2,032 total[28][29][m]
SystemStarterWilfredo Sanchez10.42005-04-29;[n]
UpstartCanonical Ltd.1.13.2[30]2014-09-04;[o]
NameDeveloperLatest releaseLicenseNotes
VersionDate
  1. ^ BootScripts in GoboLinux
  2. ^ busybox-init, suited to embedded operating systems, used by Alpine Linux (before being replaced with OpenRC), SliTaz 5 (Rolling), Tiny Core Linux, and VMware ESXi, and used by OpenWrt before it was replaced with procd
  3. ^ dinit, a service manager and init system.[18]
  4. ^ Epoch, a single-threaded Linux init system focused on simplicity and service management[47]
  5. ^ ginitd, a software package that consists of an init system and a service management system[48]
  6. ^ Initng, a full replacement of init designed to start processes asynchronously
  7. ^ launchd, a replacement for init in Darwin and Darwin-based operating systems such as macOS and iOS starting with Mac OS X v10.4 (it launches SystemStarter to run old-style 'rc.local' and SystemStarter processes)
  8. ^ OpenRC, a process spawner that utilizes system-provided init, while providing process isolation, parallelized startup, and service dependency; used by Alpine Linux, Gentoo and its derivatives, and available as an option in Devuan and Artix Linux.
  9. ^ runit, a cross-platform full replacement for init with parallel starting of services, used by default in Void Linux[49]
  10. ^ Service Management Facility (SMF), a complete replacement/redesign of init from the ground up in illumos/Solaris starting with Solaris 10, but launched as the only service by the original System V-style init
  11. ^ Shepherd, the GNU service and daemon manager which provides asynchronous, dependency-based initialisation; written in Guile Scheme and meant to be interactively hackable during normal system operation[50]
  12. ^ s6, a software suite that includes an init system[51][52]
  13. ^ systemd, a software suite, full replacement for init in Linux that includes an init daemon, with concurrent starting of services, service manager, and other features. Used by Debian (replaces SysV init) and Ubuntu, among other popular Linux distributions. As of February 2019, systemd has been adopted by most major Linux distributions.[53]
  14. ^ SystemStarter, a process spawner started by the BSD-style init in Mac OS X prior to Mac OS X v10.4
  15. ^ Upstart, a full replacement of init designed to start processes asynchronously. Initiated by Ubuntu and used by them until 2014. It was also used in Fedora 9,[54][55] Red Hat Enterprise Linux 6[56] and Google's ChromeOS.[57]

Operating system support

NameLinuxBSDDarwinOther
BootScripts
busybox-init
dinit
Epoch
finit
Initng
launchd
OpenRC
procd
runit
Service Management Facility (SMF)
Shepherd
s6
systemd
SystemStarter
Upstart
NameLinuxBSDDarwinOther

Compatibility, interface and programming

Comparison of init systems[31][32]
Namemusl
libc
compatible
dependency
free
script/
service
format
Plain
log
format
Per-
service
config
Cross-
service
events
Parallel
service
startup
Process
supervision
Programming languageCodebase
size
(lines)
BootScripts[14][14]
busybox-init[33]
[33]
dinit[18]
Epoch
(v1.1+)
[34][34]
finit[35][35]
Initng[36][36]
launchd[37][37]
OpenRC
(sysv or BSD)

(conf.d)
[38][38]
procd[39][39][40][41][41]
runit[42][42]
Service Management Facility (SMF)
(sysv?)

(service
instances)
Shepherd[43][43]
s6[44][44]
systemd
(journald)
[45]
[45]
Upstart[46]
[46]
Namemusl
libc
compatible
dependency
free
script/
service
format
Plain
log
format
Per-
service
config
Cross-
service
events
Parallel
service
startup
Process
supervision
Programming languageCodebase
size
(lines)

See also

References

  1. ^ "Lennart Poettering on systemd's Tumultuous Ascendancy". The New Stack. 2018-11-08. Archived 2018-11-08 at the Wayback Machine. Retrieved 2024-01-30.
  2. ^
  3. ^
  4. ^
  5. ^
  6. ^
  7. ^
  8. ^ Andrew Smallshaw (7 December 2009). "Unix and Linux startup scripts, Part 2". Archived 18 December 2009 at the Wayback Machine. Retrieved 6 June 2011.
  9. ^ "init(8)". minnie.tuhs.org. Archived 2021-07-27 at the Wayback Machine. Retrieved 2015-09-12.
  10. ^ "System run level". IBM. Archived 2026-03-26 at the Wayback Machine. Retrieved 2026-03-26.
  11. ^ "Initscripts". Gentoo Linux Documentation. Gentoo.org. 2014-12-13. Archived 2020-12-03 at the Wayback Machine. Retrieved 2020-12-08.
  12. ^ "Run Levels". Oracle Solaris Administration: Common Tasks. Oracle. Archived 2016-04-10 at the Wayback Machine. Retrieved 2017-11-14.
  13. ^ "UNIX man pages : runlevel (8)". Unixhelp.ed.ac.uk. 1997-05-27. Archived from the original on 2014-07-14. Retrieved 2014-07-12.
  14. ^ "gobolinux/Scripts: 🧰 The GoboLinux scripts collection". GitHub. Retrieved 2026-04-25.
  15. ^ "Erik Andersen's Homepage". Archived June 13, 2010 at the Wayback Machine. Retrieved December 23, 2009.
  16. ^ Active Projects Archived July 29, 2010 at the Wayback Machine, Rob Landley's website
  17. ^ Denys Vlasenko Archived September 5, 2017 at the Wayback Machine, BusyBox maintainer
  18. ^ "GitHub - davmac314/dinit: Service monitoring / "init" system". GitHub. Archived 2021-12-12 at the Wayback Machine. Retrieved 2021-12-12.
  19. ^ "GitHub - Subsentient/epoch: The Epoch Init System". GitHub. Retrieved 2026-04-25.
  20. ^ "GitHub - finit-project/finit: Fast init for Linux. Cookies included". GitHub. Retrieved 2026-04-25.
  21. ^ "initng/initng: InitNG core components". GitHub. Retrieved 2026-04-25.
  22. ^ "GitHub - openwrt/procd: [MIRROR] OpenWrt service / process manager". GitHub. Retrieved 2026-04-25.
  23. ^ "GNU Shepherd Open Source Project on Open Hub: Contributor Ludovic Courtès". Open Hub. Retrieved 2026-04-25.
  24. ^ "GNU Shepherd Open Source Project on Open Hub: Contributors". Open Hub. Retrieved 2026-04-25.
  25. ^ "skarnet/s6". GitHub. Retrieved 2026-04-25.
  26. ^ "systemd README", freedesktop.org, archived 7 July 2013 at the Wayback Machine, retrieved 9 September 2012
  27. ^ "Systemd Hits A High Point For Number Of New Commits & Contributors During 2018 - Phoronix". Archived 21 September 2009 at the Wayback Machine. Retrieved 30 December 2018.
  28. ^ Used the "contributors" statistic from: "systemd/systemd", systemd, 2023-12-03, retrieved 2023-12-03
  29. ^ Poettering, Lennart (21 April 2012), "systemd Status Update", archived 23 April 2012 at the Wayback Machine, retrieved 28 April 2012
  30. ^ "1.13.2 "It looks lush from the side" : Series 1.x : upstart". Launchpad. Retrieved 2022-01-01.
  31. ^ "systemdfree.com — Because your init should do one thing". Retrieved 2026-04-25. As of 2024, the systemd project encompasses: an init daemon, a service manager, a login manager (logind), a DNS resolver (systemd-resolved), a time synchronization daemon (systemd-timesyncd), a network manager (systemd-networkd), a bootloader (systemd-boot), a home directory manager (systemd-homed), a credential manager, a container manager (systemd-nspawn), a journal binary log system (journald), a device manager (udev, absorbed in 2012), and a cryptography layer for encrypted storage. These are not plugins. They are deeply coupled components sharing internal APIs, dbus interfaces, and cgroup hierarchies. [...] GNOME's dependency on logind, NetworkManager's integration with systemd-networkd, and PulseAudio's replacement by PipeWire — which also integrates deeply with systemd session management
  32. ^ "Comparison of init systems - Gentoo wiki". 2025-09-16. Retrieved 2026-04-25.
  33. ^ "The BusyBox Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  34. ^ "The Epoch Init System Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  35. ^ "The finit Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  36. ^ "The InitNG Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  37. ^ "The Open launchd Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  38. ^ "The OpenRC Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  39. ^ stokito (2025-11-18). "[OpenWrt Wiki] The UCI system". Retrieved 2026-04-25.
  40. ^ bluewavenet (2025-02-18). "[OpenWrt Wiki] Procd system init and daemon management". Retrieved 2026-04-25.
  41. ^ "The openwrt-procd Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  42. ^ "The runit Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  43. ^ "The GNU Shepherd Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  44. ^ "The s6 Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  45. ^ "The systemd Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  46. ^ "The Upstart Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2026-04-25.
  47. ^ "Epoch Init System Homepage". Archived 2014-08-02 at the Wayback Machine. Retrieved 2014-07-31.
  48. ^ Wood-Mattheusson, S. M. (2024-12-16). "ginitd: det effektivaste init-systemet"
  49. ^ "Void Linux main page". Archived 2020-08-29 at the Wayback Machine. Retrieved 2020-08-31.
  50. ^ "The Shepherd - GNU Project". Free Software Foundation, Inc. Archived 2016-02-12 at the Wayback Machine. Retrieved 2016-01-16.
  51. ^ "s6: why another supervision suite". Archived 2021-09-13 at the Wayback Machine. Retrieved 2021-09-13.
  52. ^ "s6 init system". Archived from the original on 2021-09-13.
  53. ^ See Systemd#Adoption
  54. ^ "Fedora 14 Accepted Features", 2010-07-13, archived 2022-03-27 at the Wayback Machine, retrieved 2010-07-13
  55. ^ "Fedora defers systemd to F15". Linux Weekly News. 2010-09-14. Archived 2010-09-19 at the Wayback Machine. Retrieved 2010-09-17.
  56. ^ "Deployment". Red Hat Enterprise Linux 6: Technical Notes. Red Hat. Archived 2018-08-29 at the Wayback Machine. Retrieved 2013-12-31.
  57. ^ "Software Architecture: Chromium OS design documents", archived 9 April 2022 at the Wayback Machine, retrieved 25 January 2014