[systemd-devel] How do I make some environment variables available to user-mode unit?

Andrei Dziahel develop7 at develop7.info
Tue May 13 12:21:07 PDT 2014


Hey list,

I've create socket-activated user-mode unit[1] that sets up a SSH
tunnel, but it fails to start because ssh is unaware of ssh-agent
(gnome-keyring) because of empty environment. Is this possible to feed
ssh-agent-related environment variables to foo-tunnel.service making
gnome-keyring ask me to unlock openssh key?

  [1]: https://gist.github.com/develop7/bdab20c0d9658f0d2b08

Thank you in advance.
-- 
Regards,
Andrei Dziahel


More information about the systemd-devel mailing list