mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 00:43:13 +00:00
22 lines
616 B
Plaintext
22 lines
616 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# systemctl add-requires
|
|
|
|
> Add `Requires` dependencies to a target for one or more units.
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#add-wants%20TARGET%20UNIT%E2%80%A6>.
|
|
|
|
- Add a `Requires` dependency from a target to a unit:
|
|
|
|
`systemctl add-requires {{target}} {{unit}}`
|
|
|
|
- Add multiple `Requires` dependencies at once:
|
|
|
|
`systemctl add-requires {{target}} {{unit1 unit2 ...}}`
|
|
|
|
- Add a user-level `Requires` dependency:
|
|
|
|
`systemctl add-requires {{target}} {{unit}} --user`
|