On Fri, Jun 6, 2014 at 10:14 AM, Magnus Therning <mag...@therning.org> wrote:
> I have a feeling this ought to be solvable using systemd but I can't
> really see how.  Writing a service for gpg-agent is not that
> difficult, and it creates the required environment file without
> problems.  But, how do I hook it in to the user login in the right
> way?  Who should be wanting my gpg-agent.service, and then load the
> generated file using EnvironmentFile=?

Rather than starting it purely with systemd, have you looked into
using Envoy [1] and using its PAM module to ensure it gets propagated
to the entire login session?

Regards,
~Celti

[1]: https://github.com/vodik/envoy

Reply via email to