HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl add-wants — Add `Wants` dependencies to a target for one or more units. More information: <https://www.freedeskt

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsystemctl add-wantsdependenciescliwantsaddtargetfor
linux

Problem

How to use the systemctl add-wants command: Add Wants 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>.

Solution

systemctl add-wants — Add Wants 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 Wants dependency from a target to a unit:
systemctl add-wants {{target}} {{unit}}


Add multiple Wants dependencies at once:
systemctl add-wants {{target}} {{unit1 unit2 ...}}


Add a user-level Wants dependency:
systemctl add-wants {{target}} {{unit}} --user

Code Snippets

Add a `Wants` dependency from a target to a unit

systemctl add-wants {{target}} {{unit}}

Add multiple `Wants` dependencies at once

systemctl add-wants {{target}} {{unit1 unit2 ...}}

Add a user-level `Wants` dependency

systemctl add-wants {{target}} {{unit}} --user

Context

tldr-pages: linux/systemctl add-wants

Revisions (0)

No revisions yet.