Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

gpg-agent --daemon running in foreground

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


ciprian.craciun at gmail

Oct 12, 2009, 4:58 AM

Post #1 of 5 (996 views)
Permalink
gpg-agent --daemon running in foreground

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?

Thanks,
Ciprian.

_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


dshaw at jabberwocky

Oct 12, 2009, 6:08 AM

Post #2 of 5 (919 views)
Permalink
Re: gpg-agent --daemon running in foreground [In reply to]

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


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


ciprian.craciun at gmail

Oct 12, 2009, 6:57 AM

Post #3 of 5 (914 views)
Permalink
Re: gpg-agent --daemon running in foreground [In reply to]

On Mon, Oct 12, 2009 at 4:08 PM, David Shaw <dshaw [at] jabberwocky> 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.
Attachments: foreground.diff (4.74 KB)


ciprian.craciun at gmail

Jan 23, 2010, 1:59 AM

Post #4 of 5 (660 views)
Permalink
Re: gpg-agent --daemon running in foreground [In reply to]

On Mon, Oct 12, 2009 at 3:57 PM, Ciprian Dorin, Craciun
<ciprian.craciun [at] gmail> wrote:
> On Mon, Oct 12, 2009 at 4:08 PM, David Shaw <dshaw [at] jabberwocky> 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.

_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


ciprian.craciun at gmail

Jan 23, 2010, 2:07 AM

Post #5 of 5 (661 views)
Permalink
Re: gpg-agent --daemon running in foreground [In reply to]

On Sat, Jan 23, 2010 at 11:59 AM, Ciprian Dorin, Craciun
<ciprian.craciun [at] gmail> wrote:
> On Mon, Oct 12, 2009 at 3:57 PM, Ciprian Dorin, Craciun
> <ciprian.craciun [at] gmail> wrote:
>> On Mon, Oct 12, 2009 at 4:08 PM, David Shaw <dshaw [at] jabberwocky> 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.


Forgot to attach the patch again. :)
Attachments: foreground.diff (4.74 KB)

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.