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

Taught in

References