ssh-agent subprocess parentage

Ángel González keisial at gmail.com
Tue May 10 07:58:27 EST 2011


Daniel Kahn Gillmor wrote:
> On 05/09/2011 05:16 PM, Ángel González wrote:
>> Note that you could supervise it by running the commands in the shell.
>> So instead of
>> $ supervise ssh-agent bash
>> you can do
>> $ bash
>> bash$ eval $(supervise ssh-agent)
>>
>> Or even
>> bash -c 'eval $(supervise ssh-agent); exec bash'
> so yes -- i can certainly supervise it if i don't supply a subcommand at
> all; but in this case, i want it to run a subcommand.
>
> For concreteness' sake, imagine a daemon that stays in the foreground,
> but needs to talk to an ssh-agent which handles its keys.  If either the
> agent or the daemon dies, you'd like the supervising process to restart
> the whole chain.
>
> With the documented behavior, this would work fine.
>
> With the existing actual behavior, if the agent dies (for whatever
> reason), the supervising process has no way of knowing.
What about having the supervisor as parent of both the agent and the
daemon ?




More information about the openssh-unix-dev mailing list