Evan Harmon - Memex

Nix Services, Processes, & init System

  • Every process has a family history/is started by some other process (parent/child), except PID=1(systemd or init)
    • parent PID = PPID

Init Process

(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 it should die for any reason. Init is typically assigned process identifier 1.

Daemons

  • Unix Convention: daemons end in d like systemd

Systemd vs init(SysV)

  • init(SysV)
    • older
    • Can only start processes serially, contra systemd
  • systemd
    • replaces init but there's still some controversy with it - big and complicated and does a lot of things
    • Can start processes in parallel
    • pid=1
    • Raspberry Pi uses systemd

Commands

Nix Services, Processes, & init System
Interactive graph
On this page
Nix Services, Processes, & init System
Init Process
Daemons
Systemd
init (SysV)
Systemd vs init(SysV)
Launchd
Cron
Commands