commands.sh

systemctl import-environment

linux

Import environment variables from the shell into systemd's environment. See also: `systemctl show-environment`, `systemctl unset-environment`.

More info →

Examples (3)

Import a variable

Import multiple variables

systemctl import-environment variable_1 variable_2 ...

Import variables for user services

made by @shridhargupta | data from tldr-pages