Introduction
A unit file tells systemd, the service manager of many Linux systems, about one thing it manages. The
suffix gives the type: .service, .socket, .timer,
.mount, .automount, .device, .swap,
.target, .path, .slice or .scope.
Structure
Plain INI-style text. General settings go in the [Unit] section, installation settings in
[Install], and each type has its own section such as [Service]. Sections and keys
beginning with X- are ignored. Extra .conf files in a .d directory are
merged with the unit.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the quoting rules and the settings of each unit type are in the systemd manual pages.
- Viewer: the site has no viewer for this format.
Links
Software
- systemd – the system and service manager that loads unit files (Linux)
Reference
- systemd.unit(5) – unit configuration