Control Services and Daemons Flashcards
What is a daemon?
Daemons are processes that either wait or run in the background, to perform various tasks.
What does the systemd daemon do?
systemd manages the startup process for Linux, including service startup and service management in general.
What is a service within the systemd context?
A service in systemd often refers to one or more daemons.
What does PID stand for?
Process Identifier
In Red Hat Enterprise Linux, what is the first process that starts? (PID 1)
systemd
What features does systemd provide in Linux?
- Parallelization (starting multiple services simultaniously).
- On-demand starting of daemons.
- Automatic service dependency management.
- A way of tracking related processes using control groups.
What is a unit in systemd?
A unit is an abstact concept to define objects that the system knows how to manage.
What are unit files?
Configuration files which encapsulate information about system services, listening sockets, and other relevant objects for the systemd init system.
Name the three types of systemd units and their file extensions.
- Service units (.service)
- Socket units (.socket)
- Path units (.path)
What are .service units?
.service units represent system services, and are used to start often accessed daemons, such as a web server.
What are .socket units.
.sockets represent inter-process communications (IPC) that systemd should monitor.
What is a .path unit?
.path units delay the activation of a service until a specific file system change occurs.
What CLI command is used to manage systemd units.
systemctl
What CLI command will list all currently loaded service units?
systemctl list-units --type=service
What CLI command wil list all units regardless of activation state?
systemctl list-units --all