quick-docs/modules/ROOT/pages/_partials/con_understanding-systemd.adoc

52 lines
1.9 KiB
Text
Raw Normal View History

2018-01-21 17:04:05 +00:00
[id='understanding-systemd']
2018-02-26 16:43:59 +00:00
= Understanding systemd
2018-02-26 16:43:59 +00:00
systemd is a system and service manager for Linux, compatible with SysV and LSB init scripts. systemd provides:
* Aggressive parallelization capabilities
* Uses socket and D-Bus activation for starting services
* Offers on-demand starting of daemons, keeps track of processes using Linux cgroups
* Supports snapshotting and restoring of the system state
* Maintains mount and automount points
* Implements an elaborate transactional dependency-based service control logic.
2018-02-26 16:43:59 +00:00
The `systemctl` command is the primary tool to manage systemd. It combines the functionality of SysVinit's `service` and `chkconfig` commands into a single tool you can use to enable and disable services permanently or only for the current session.
2018-02-26 16:43:59 +00:00
systemd manages _units_, which are representations of system resources and services. This following list shows the unit types that systemd can manage:
service::
A service on the system, including instructions for starting, restarting, and stopping the service.
socket::
A network socket associated with a service.
device::
2018-02-26 16:43:59 +00:00
A device specifically managed with systemd.
mount::
2018-02-26 16:43:59 +00:00
A mountpoint managed with systemd.
automount::
A mountpoint automatically mounted on boot.
swap::
Swap space on the system.
target::
A synchronization point for other units. Usually used to start enabled services on boot.
path::
A path for path-based activation. For example, you can start services based on the state of a certain path, such as whether it exists or not.
timer::
A timer to schedule activation of another unit.
snapshot::
2018-02-26 16:43:59 +00:00
A snapshot of the current systemd state. Usually used to rollback after making temporary changes to systemd.
slice::
Restrivtion of resources through Linux Control Group nodes (cgroups).
scope::
2018-02-26 16:43:59 +00:00
Information from systemd bus interfaces. Usually used to manage external system processes.