Skip to content

The daemon lifecycle

A daemon is started by init/systemd at boot, runs continuously, and is restarted on crash (by systemd's Restart=on-failure or similar).

graph LR
  B[Boot] --> S[systemd]
  S --> D[Daemon process]
  D --> R[Run, serve]
  R --> C{Crash?}
  C -->|Yes| S
  C -->|No| R
  style D fill:#E8F5E9
  style S fill:#FFF3E0