unit ordering
Settings (After= and Before=) that say when a systemd unit starts relative to others, independent of whether it pulls them in.
In more detail
After=network-online.target delays a service until the network target is reached, but does not by itself start that target. Combine it with Wants= when you need both. Missing ordering is a common cause of services that fail only at boot.
Related terms
- unit dependency — A setting that says a systemd unit needs another unit started with it, either softly (Wants=) or strictly (Requires=).
- systemd unit — One object systemd manages, such as a service, a mount or a target, described by a unit file and named with a suffix like web.service.
Taught in
- systemd: Units, Targets And The Boot Graph — Linux Fundamentals & Systems Administration
- Your Own Unit, And Reading journald — Linux Fundamentals & Systems Administration