gpg-agent --daemon running in foreground

Ciprian Dorin, Craciun ciprian.craciun at gmail.com
Sat Jan 23 10:59:00 CET 2010


On Mon, Oct 12, 2009 at 3:57 PM, Ciprian Dorin, Craciun
<ciprian.craciun at gmail.com> wrote:
> On Mon, Oct 12, 2009 at 4:08 PM, David Shaw <dshaw at jabberwocky.com> wrote:
>> On Oct 12, 2009, at 7:58 AM, Ciprian Dorin, Craciun wrote:
>>
>>>   Hello all!
>>>
>>>   I'm facing the following problem: I need to run gpg-agent, but
>>> without him going into background. Is there any solution to this one?
>>
>> I'm not sure exactly what you're trying to do, but you can run gpg-agent
>> without it backgrounding by leaving off the "--daemon" option.
>>
>> David
>
>    So I have the following situation: I want to be able to run
> gpg-agent inside a runsv process (part of runit package), that
> monitors the process, and in case it breaks, it shall restart it.
> Unfortunately gpg-agent forks into background, and thus I cannot
> monitor if it's running from inside runsv.
>
>    Thus I need to make gpg-agent behave just like `gpg-agent
> --server` (not forking into background), but using the sockets (just
> like --daemon).
>
>    Anyway, I've modified the latest source code (2.0.13), file
> agent/gpg-agent.c, to add another option --daemon-fg, that shall not
> fork in background. (The patch is attached.) (I'm not very proud of
> the patch but it does the job. Hope I've not broken anything... :) )
>
>    So I would like to ask the maintainer of gpg-agent to look upon
> it, and either include it, either (if time allows him) provide such an
> option.
>
>    Thanks,
>    Ciprian.


    Sorry to bother you guys again. Have you looked at my patch
(related with the my previous comments)?
    (It allows gnupg-agent to behave normally like a daemon, but not
go into the background.)

    Is there something wrong with it?

    Thanks,
    Ciprian.



More information about the Gnupg-users mailing list