====== Ubuntu - Services - Set service environment variable ====== ===== Using systemd ===== systemctl set-environment foo=bar ---- ===== Using Upstart ===== initctl set-env foo=bar