Checking the status of gpg-agent

$ gpg-agent
gpg-agent[7405]: no gpg-agent running in this session

Starting gpg-agent

Find number of files where string ToDo occurs

$ gpg-agent --daemon
$ gpg-agent
gpg-agent[9580]: gpg-agent running and available

Re-starting gpg-agent

The gpg-connect-agent is a utility to communicate with a running gpg-agent instance. It can be used to restart gpg-agent:

$ gpg-connect-agent reloadagent /bye
OK
$ gpg-agent
gpg-agent[59922]: gpg-agent running and available
$ gpg-connect-agent reloadagent /bye
OK
$ gpg-agent
gpg-agent[60312]: gpg-agent running and available

Alternatively,

$ gpgconf --kill gpg-agent
$ gpg-agent
gpg-agent[12247]: no gpg-agent running in this session

blog comments powered by Disqus