systemd Unit Builder
Build and validate a systemd unit, with per-directive explanations.
- Your draft is kept in this tab's session storage and cleared when the tab closes.
Draft kept in this tab
Your draft is kept in this tab's session storage and cleared when the tab closes. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
systemd unit file source
Sections
The sections are listed once the unit has been read.
Analysis
Counts and findings are shown once there is a unit to check.
What this tool checks and its limits
It reads one unit; it does not resolve Requires=, After=, or a .wants/ directory to other units, and it has no view of a system's unit tree. Drop-ins (unit.d/*.conf) and the merge order that gives them their meaning are out of scope. Specifiers (%i, %n, %H) are explained but not expanded, since expansion needs the instance name and the host. .service, .timer, .socket, .mount, .path, and .target are covered; .slice, .scope, and .swap parse but have no directive explanations. The directive table is the ~180 directives in common use, not all ~900: an unrecognized key is reported as info, never as invalid.
systemd lint rules
| Rule | Severity | Fires when |
|---|---|---|
SYSTEMD/unknown-section | error | A section header outside the known set |
SYSTEMD/wrong-section | error | A known directive in a section it is not valid in โ systemd ignores these without a word, which is why the severity is not warning |
SYSTEMD/type-needs-exec | error | Type= other than oneshot with no ExecStart |
SYSTEMD/bad-time | error | A time value that is not a systemd time span โ RestartSec=5min30, missing a unit |
SYSTEMD/oneshot-restart | warning | Type=oneshot with Restart=always, which systemd refuses to start |
SYSTEMD/no-restart | warning | A long-running .service with no Restart= |
SYSTEMD/relative-exec | warning | ExecStart with a relative path. systemd requires absolute and fails at load |
SYSTEMD/no-hardening | info | None of NoNewPrivileges, ProtectSystem, PrivateTmp, or User= is set |
SYSTEMD/unknown-directive | info | A key not in DIRECTIVES. Reported, never rejected โ the table is a subset and says so |
SYSTEMD/deprecated | info | A directive systemd has renamed, with its replacement named |
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.