unit dependency
A setting that says a systemd unit needs another unit started with it, either softly (Wants=) or strictly (Requires=).
In more detail
With Wants=, systemd starts the other unit but carries on if it fails; with Requires=, a failure stops this unit too. A dependency says what starts together, not in what order: ordering is set separately with After= and Before=. Read both before blaming systemd for a start-up race.
Example
unit=web target=multi wants=web after=net: the target wants the service, which starts after networking.Related terms
- unit ordering — Settings (After= and Before=) that say when a systemd unit starts relative to others, independent of whether it pulls them in.
- 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.
- systemd target — A systemd unit that groups other units into a milestone, such as multi-user.target for a normal server boot.
Taught in
- systemd: Units, Targets And The Boot Graph — Linux Fundamentals & Systems Administration