Skip to main content
Definition Website Computer and Technology

Daemon

Subject: Computer and Technology noun /ˈdiː.mən/ 1 definition

  1. Definition (noun)

    Entry #212 · Updated

    A daemon is a background computer process that runs continuously without direct interactive control from a user, responding to system events, scheduled triggers, or network requests. In Unix-like operating systems, daemons are typically launched at boot by an init system and detached from any controlling terminal, redirecting standard input, output, and error streams to null devices or log files. Unlike foreground applications or one-off scripts that exit after completing a single task, a daemon remains resident in memory to provide persistent system services and is conventionally named with a trailing d (such as sshd or httpd).

    Common Types

    • System Daemons: Privileged background services started at boot to manage core operating system tasks such as device discovery, logging, and job scheduling (for example, udevd or crond).

    • Network Daemons: Server processes that bind to TCP/UDP ports or domain sockets to accept and serve incoming client connections (for example, sshd or nginx).

    • Socket-Activated Daemons: On-demand services whose listening sockets are monitored by a service manager like systemd or launchd, spawning the daemon process only when traffic arrives.

    • Kernel Daemons: Background execution threads running inside kernel space (such as Linux kswapd) to perform low-level tasks like memory reclamation and disk writeback without user-space overhead.

    Example

    When a Linux server boots, its service manager starts the sshd daemon detached from any console to listen on TCP port 22. When an engineer later connects over SSH from a laptop, sshd authenticates the session and spawns an interactive shell while the main daemon continues listening for additional connections.