[arch-general] Starting gpg-agent from systemd?

Patrick Burroughs (Celti) celticmadman at gmail.com
Fri Jun 6 13:41:24 EDT 2014


On Fri, Jun 6, 2014 at 10:14 AM, Magnus Therning <magnus at 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


More information about the arch-general mailing list