/usr/share/upstart/sessions/gpg-agent.conf is in gnupg-agent 2.0.22-3ubuntu1.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | description "GPG Agent"
author "Stéphane Graber <stgraber@ubuntu.com>"
start on starting xsession-init
pre-start script
GNUPGHOME=$HOME/.gnupg
[ -d $GNUPGHOME ] || { stop; exit 0; }
grep -qs '^[[:space:]]*use-agent' "$GNUPGHOME/gpg.conf" "$GNUPGHOME/options" || { stop; exit 0; }
eval "$(gpg-agent --daemon --sh)" >/dev/null
initctl set-env --global GPG_AGENT_INFO=$GPG_AGENT_INFO
end script
post-stop script
GPG_AGENT_PID=$(echo $GPG_AGENT_INFO | cut -d : -f2)
kill $GPG_AGENT_PID 2>/dev/null || true
initctl unset-env --global GPG_AGENT_INFO
end script
|