On Tue, 18 Sep 2007, Filippo Giunchedi wrote:

Could you try:

export AUTOSSH_DEBUG=1

and launch your autossh without the -f

I get the following:

[first I start up autossh with the network working, so it can resolve the host name]

autossh[23373]: checking for grace period, tries = 0
autossh[23373]: starting ssh (count 1)
autossh[23374]: execing /usr/bin/ssh
autossh[23373]: ssh child pid is 23374
autossh[23373]: check on child 23374
autossh[23373]: set alarm for 60 secs

[at this point I unplug the ethernet cable]

autossh[23373]: timeout polling to accept read connection
autossh[23373]: port down, restarting ssh
autossh[23373]: checking for grace period, tries = 0
autossh[23373]: starting ssh (count 2)
autossh[23451]: execing /usr/bin/ssh
autossh[23373]: ssh child pid is 23451
autossh[23373]: check on child 23451
autossh[23373]: set alarm for 60 secs
ssh: foo.example.com: Temporary failure in name resolution
autossh[23373]: check on child 23451
autossh[23373]: ssh exited with error status 255; restarting ssh
autossh[23373]: expired child, returning 1
autossh[23373]: checking for grace period, tries = 1
autossh[23373]: starting ssh (count 3)
autossh[23452]: execing /usr/bin/ssh
autossh[23373]: ssh child pid is 23452
autossh[23373]: check on child 23452
autossh[23373]: set alarm for 60 secs
ssh: foo.example.com: Temporary failure in name resolution
autossh[23373]: check on child 23452
autossh[23373]: ssh exited with error status 255; restarting ssh
autossh[23373]: expired child, returning 1
autossh[23373]: checking for grace period, tries = 2
autossh[23373]: starting ssh (count 4)
autossh[23453]: execing /usr/bin/ssh
autossh[23373]: ssh child pid is 23453
autossh[23373]: check on child 23453
autossh[23373]: set alarm for 60 secs
[...and so on, but there is no pause each time it says "set alarm for 60 secs", while in the first instance there is a pause]

What seems to be happening is that the failure of the DNS lookup causes an immediate retry, rather than waiting for 60 seconds.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to