<div dir="ltr"><div>Champion. That explains it. I also stuffed in a check to see if AutoSSH is already running.<br><br></div>Seeing single connections now. Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 August 2015 at 14:48, Mike Cardwell <span dir="ltr"><<a href="mailto:nlug@lists.grepular.com" target="_blank">nlug@lists.grepular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">* on the Thu, Aug 27, 2015 at 02:39:29PM +0100, Jason Irwin wrote:<br>
<br>
> Actually, I take that back. What appears to be happening is that the<br>
> autossh script in /etc/network/if-up.d/ is getting run twice on boot for<br>
> some reason. Which has me puzzled - isn't that the correct place for a<br>
> script to live so it gets run when the network is up? (Routable IP etc etc).<br>
<br>
</span>My understanding is that scripts in /if-up.d/ get run every time any interface<br>
is brought up. So if you're bringing up 2 interfaces, it will get run twice.<br>
It looks like a number of environment variables are set before the script<br>
is run, so you can check inside the script which interface is being brought<br>
up and respond accordingly. I.e, exit if it's not eth0 or whatever. I can<br>
see a number of scripts in there on my system that do things like:<br>
<br>
if [ "$IFACE" != lo ]; then<br>
blah blah blah<br>
fi<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mike Cardwell <a href="https://grepular.com" rel="noreferrer" target="_blank">https://grepular.com</a> <a href="https://emailprivacytester.com" rel="noreferrer" target="_blank">https://emailprivacytester.com</a><br>
OpenPGP Key 35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F<br>
XMPP OTR Key 8924 B06A 7917 AAF3 DBB1 BF1B 295C 3C78 3EF1 46B4<br>
</font></span><br>_______________________________________________<br>
Nottingham mailing list<br>
<a href="mailto:Nottingham@mailman.lug.org.uk">Nottingham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/nottingham" rel="noreferrer" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a><br></blockquote></div><br></div>