[systemd-devel] systemd + ssh-agent
Oleksii Shevchuk
alxchk at gmail.com
Mon Feb 18 13:16:53 PST 2013
I use this (with pam_gnome_keyring):
> cat gnome-keyring-env.service
[Unit]
Description=Setup gnome keyring environment
[Service]
Type=oneshot
ExecStart=/bin/sh -c "for env in $(gnome-keyring-daemon -s); do systemctl --user set-environment $env; done"
ExecStop=/bin/sh -c "for env in GNOME_KEYRING_CONTROL SSH_AUTH_SOCK GPG_AGENT_INFO; do systemctl --no-block --user unset-environment $env; done"
RemainAfterExit=yes
[Install]
WantedBy=env.target
More information about the systemd-devel
mailing list