Differences between revisions 26 and 27
Revision 26 as of 2017-08-15 17:32:15
Size: 1892
Editor: GregWooledge
Comment: discuss the alternative init systems a bit, and at least attempt to describe the current state of affairs
Revision 27 as of 2017-08-16 14:08:48
Size: 1932
Editor: Brian Potkin
Comment: Spelling: "int". Removed unneeded "either". Added links to packages containing init(1), init(8) and the manual for /etc/inittab.
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
The system initialization process is handled by the {{{init}}} daemon. In [[DebianJessie|jessie]] and later releases, {{{/sbin/int}}} is a symbolic link to one of the various init daemons: either {{{/lib/systemd/systemd}}} (see [[systemd]]) or {{{/lib/sysvinit/init}}} (see below), or some other init system. The system initialization process is handled by the {{{init}}} daemon. In [[DebianJessie|jessie]] and later releases, {{{/sbin/init}}} is a symbolic link to one of the various init daemons: {{{/lib/systemd/systemd}}} (see [[systemd]]) or {{{/lib/sysvinit/init}}} (see below), or some other init system.
Line 17: Line 17:
The [[inittab|/etc/inittab]] configuration tells init what to do. Especially it contains the lines: The DebianMan:inittab configuration tells [[DebPkg:sysvinit-core|init]] what to do. Especially it contains the lines:
Line 29: Line 29:
 * [[DebianMan:1/init|Init(1) man page]] (from [[systemd]]).
 * [[DebianMan:8/init|Init(8) man page]] (from sysvinit).
 * [[DebianMan:1/init|Init(1) man page]] (from [[DebPkg:systemd-sysv]]).
 * [[DebianMan:8/init|Init(8) man page]] (from [[DebPkg:sysvinit-core]]).

Translation(s): English - Français - Italiano


BootProcess > init


Init is the first program to run after your system is booted, and continues to run as process number 1 until your system halts. Init's job is to start other programs that are essential to the operation of your system. All other processes are descended from init.

Overview

The system initialization process is handled by the init daemon. In jessie and later releases, /sbin/init is a symbolic link to one of the various init daemons: /lib/systemd/systemd (see systemd) or /lib/sysvinit/init (see below), or some other init system.

Only systemd is fully supported; sysvinit is mostly supported, but Debian packages are not required to provide sysvinit start scripts. runit is also packaged, but has not received the same level of testing and support as the others.

The remainder of this page describes the sysvinit init daemon, which was the default in wheezy and earlier releases, and which is a supported alternative in jessie and later releases.

Sysvinit configuration

The inittab configuration tells init what to do. Especially it contains the lines:

  • id:2:initdefault:
    
    si::sysinit:/etc/init.d/rcS
    
    l2:2:wait:/etc/init.d/rc 2

Which causes the files /etc/init.d/rcS to run initialization scripts (in /etc/rcS.d/*), then scripts for requested runlevel (in /etc/rcS.[0-9]/*).

See also


CategoryBootProcess