run-once LocalCommand [was: Re: Announce: OpenSSH 5.6 released]

Bert Wesarg bert.wesarg at googlemail.com
Thu Aug 26 07:12:03 EST 2010


On Wed, Aug 25, 2010 at 18:46, Daniel Kahn Gillmor
<dkg at fifthhorseman.net> wrote:
> On 08/25/2010 06:29 AM, Bert Wesarg wrote:
>> Thanks for the clarification. I have actually never tried it, because
>> my understanding from reading the documentation of LocalCommand
>> suggests that the command will be executed for each 'ssh' invocation.
>> Be it a mux master or a mux client. I can try to bring up a patch
>> which clarifies this in the documentation.
>
> could you just make your LocalCommand test to see if it needs to be run?
>
> e.g.
>
> if [ grep -qv "^${MOUNTPOINT}" /proc/mounts ] ; then
>    mount "${MOUNTPOINT}"
> fi
>
> in that case, it could run at each invocation and just do nothing if it
> wasn't needed.

But LocalCommand does run only once, so I don't need to this test.
Yes, and I like it that way. Hope that this will not change.

Bert

>
>        --dkg
>
>


More information about the openssh-unix-dev mailing list