services:set_service_environment_variable
Differences
This shows you the differences between two versions of the page.
services:set_service_environment_variable [2016/07/06 11:25] – created peter | services:set_service_environment_variable [2019/12/04 20:40] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Services - Set service environment variable ====== | ||
- | |||
- | ===== Using systemd ===== | ||
- | |||
- | <code bash> | ||
- | systemctl set-environment foo=bar | ||
- | </ | ||
- | |||
- | ===== Using Upstart ===== | ||
- | |||
- | <code bash> | ||
- | initctl set-env foo=bar | ||
- | </ | ||
services/set_service_environment_variable.1467804304.txt.gz · Last modified: 2020/07/15 09:30 (external edit)