Re: Restarting gpg-agent

2010-03-15 Thread Peter Pentchev
On Sun, Mar 14, 2010 at 10:16:00PM +0100, Michel Messerschmidt wrote: On Sun, Mar 14, 2010 at 12:24:14PM -0700, James Moe wrote: Hello, opensuse v11.2, linux 2.6.31.12-0.1-desktop x86_64, gpg v2.0.12. The docs at http://www.gnupg.org/ cover starting gpg-agent pretty well. What is

Re: Restarting gpg-agent

2010-03-15 Thread Werner Koch
On Mon, 15 Mar 2010 11:58, r...@ringlet.net said: # start gpg-agent if no running instance is found if test -z ${GPG_AGENT_INFO} || ! kill -0 `grep GPG_AGENT_INFO ${GA_INFO_FILE} | cut -d: -f 2 -` 2/dev/null; then In this way, you risk a false positive if gpg-agent has died

Re: Restarting gpg-agent

2010-03-15 Thread Benjamin Donnachie
On 15 March 2010 16:54, Werner Koch w...@gnupg.org wrote: For years gpg-agent is able to test whether it is already running, just call gpg-agent and don't pass the --daemon option: This is what I use the fall back as part of MacGPG2: (* start-gpg-agent Part of the MacGPG2 project -

Re: Restarting gpg-agent

2010-03-14 Thread Doug Barton
On 03/14/10 12:24, James Moe wrote: Hello, opensuse v11.2, linux 2.6.31.12-0.1-desktop x86_64, gpg v2.0.12. The docs at http://www.gnupg.org/ cover starting gpg-agent pretty well. What is missing is how to re-start it. If gpg-agent is terminated for some reason, or the system is booted,

Re: Restarting gpg-agent

2010-03-14 Thread Michel Messerschmidt
On Sun, Mar 14, 2010 at 12:24:14PM -0700, James Moe wrote: Hello, opensuse v11.2, linux 2.6.31.12-0.1-desktop x86_64, gpg v2.0.12. The docs at http://www.gnupg.org/ cover starting gpg-agent pretty well. What is missing is how to re-start it. If gpg-agent is terminated for some reason,