Daemons
A daemon or Daemon is a program that runs as a "background" process (without a terminal or user interface), commonly waiting for events to occur and offering services. A good example is a web server that waits for a request to deliver a page, or a ssh server waiting for someone trying to log in. While these are full featured applications, there are daemons whose work is not that visible. Daemons are for tasks like writing messages into a log file (e.g. syslog, metalog) or keeping your system time accurate (e.g. ntpd). For more information see man 7 daemon.
From the user's perspective the distinction is typically not significant unless the user tries to look for the "daemon" in a process list.
Contents
1 Managing daemons
In Arch Linux, daemons are managed by systemd. The systemctl command is the user interface used to manage them. It reads <service>.service files that contain information about how and when to start the associated daemon. Service files are stored in /{etc,usr/lib,run}/systemd/system. See systemd#Using units for complete information about using systemctl to manage daemons.
1.1 Starting on boot
To add or remove services to be started at boot-time, use systemctl enable|disable <service_name>
1.2 Starting manually
To start or stop services at runtime, use systemctl start|stop <service_name>.
1.3 Restarting
To restart services, use systemctl restart <service_name>.
1.4 Status reporting
To report the current status of a service, use systemctl status <service_name>.
2 List of daemons
See Daemons List for a list of daemons with the name of the service and legacy rc.d script.
3 See also
- systemd
- Examples for writing Systemd/Services
- daemon