commands
systemd-analyze — Analyze systemd and verify units
verify checks unit syntax, dependencies and referenced executables, but cannot prove a successful start. Other subcommands such as time and critical-chain need live manager data. Diagnostics and nonzero status should be inspected. Use a fresh private workspace; live operations are VM-only.
Formal Syntax & Structure
linux syntaxlinux
systemd-analyze verify FILE...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| FILE | operand | Unit definition to validate |
Return Value
exit status and output
verify checks unit syntax, dependencies and referenced executables, but cannot prove a successful start. Other subcommands such as time and critical-chain need live manager data. Diagnostics and nonzero status should be inspected.
Working Example
Example Snippetlinux
systemd-analyze verify ./bm-prep.service ./bm-report.service && printf 'verification passed\n'