Re: autossh fails after upgrade to 7.3

2023-04-26 Thread Stuart Henderson
On 2023-04-25, rea...@catastrophe.net wrote: > So if ${daemon} is declared as "autossh", using the built-in > pexp="${daemon}:.*" would kill off multiple running autossh > instances. The idea is that pexp should have a bit more of the command line so it only matches the process started by that r

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 03:07:19PM -0600, Ashlen wrote: >rc_exec is a function, not a variable. rc.subr(8) demonstrates how to >use it. This is what I meant for you to do: > >rc_start() { >rc_exec "${daemon} ${daemon_flags_1}" && \ >rc_exec "${daemon} ${daemon_flags_2}" >} Whoops, my fault

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Ashlen
On 2023-04-25 14:20, rea...@catastrophe.net wrote: > On Tue, Apr 25, 2023 at 01:06:35PM -0600, Ashlen wrote: > >On 2023-04-25 10:45, rea...@catastrophe.net wrote: > >> After upgrading to 7.3 autossh is failing using the following rc script > >> in /etc/rc.d/autossh. It looks like maybe switching t

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Antoine Jacoutot
On Tue, Apr 25, 2023 at 02:20:01PM -0500, rea...@catastrophe.net wrote: > On Tue, Apr 25, 2023 at 01:06:35PM -0600, Ashlen wrote: > >On 2023-04-25 10:45, rea...@catastrophe.net wrote: > >> After upgrading to 7.3 autossh is failing using the following rc script > >> in /etc/rc.d/autossh. It looks l

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 07:18:12PM -, Stuart Henderson wrote: >On 2023-04-25, rea...@catastrophe.net wrote: >> On Tue, Apr 25, 2023 at 08:32:35PM +0200, Antoine Jacoutot wrote: [..] > >So let's ignore this ls -l red herring, which cannot have worked >in 7.2 either (I think you might have meant

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 01:06:35PM -0600, Ashlen wrote: >On 2023-04-25 10:45, rea...@catastrophe.net wrote: >> After upgrading to 7.3 autossh is failing using the following rc script >> in /etc/rc.d/autossh. It looks like maybe switching to $daemon_user is >> not happening to find the correct ssh

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Stuart Henderson
On 2023-04-25, rea...@catastrophe.net wrote: > On Tue, Apr 25, 2023 at 08:32:35PM +0200, Antoine Jacoutot wrote: >>On Tue, Apr 25, 2023 at 01:16:22PM -0500, rea...@catastrophe.net wrote: >>> On Tue, Apr 25, 2023 at 08:09:46PM +0200, Antoine Jacoutot wrote: >>> >On Tue, Apr 25, 2023 at 12:41:41PM -

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Ashlen
On 2023-04-25 10:45, rea...@catastrophe.net wrote: > After upgrading to 7.3 autossh is failing using the following rc script > in /etc/rc.d/autossh. It looks like maybe switching to $daemon_user is > not happening to find the correct ssh config stanzas? Thanks in advance > for any help. > > > ##

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 08:32:35PM +0200, Antoine Jacoutot wrote: >On Tue, Apr 25, 2023 at 01:16:22PM -0500, rea...@catastrophe.net wrote: >> On Tue, Apr 25, 2023 at 08:09:46PM +0200, Antoine Jacoutot wrote: >> >On Tue, Apr 25, 2023 at 12:41:41PM -0500, rea...@catastrophe.net wrote: >> >> On Tue, A

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Antoine Jacoutot
On Tue, Apr 25, 2023 at 01:16:22PM -0500, rea...@catastrophe.net wrote: > On Tue, Apr 25, 2023 at 08:09:46PM +0200, Antoine Jacoutot wrote: > >On Tue, Apr 25, 2023 at 12:41:41PM -0500, rea...@catastrophe.net wrote: > >> On Tue, Apr 25, 2023 at 12:03:51PM -0500, rea...@catastrophe.net wrote: > >> >O

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 08:09:46PM +0200, Antoine Jacoutot wrote: >On Tue, Apr 25, 2023 at 12:41:41PM -0500, rea...@catastrophe.net wrote: >> On Tue, Apr 25, 2023 at 12:03:51PM -0500, rea...@catastrophe.net wrote: >> >On Tue, Apr 25, 2023 at 10:45:21AM -0500, rea...@catastrophe.net wrote: >> >> [..

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread Antoine Jacoutot
On Tue, Apr 25, 2023 at 12:41:41PM -0500, rea...@catastrophe.net wrote: > On Tue, Apr 25, 2023 at 12:03:51PM -0500, rea...@catastrophe.net wrote: > >On Tue, Apr 25, 2023 at 10:45:21AM -0500, rea...@catastrophe.net wrote: > >> [..] > >> [ some bad paste ] > > > >Just a clarification: the rc script i

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 12:03:51PM -0500, rea...@catastrophe.net wrote: >On Tue, Apr 25, 2023 at 10:45:21AM -0500, rea...@catastrophe.net wrote: >> [..] >> [ some bad paste ] > >Just a clarification: the rc script in /etc/rc.d/autossh actually looks like > >#!/bin/ksh ># start autossh tunnel ># req

Re: autossh fails after upgrade to 7.3

2023-04-25 Thread readme
On Tue, Apr 25, 2023 at 10:45:21AM -0500, rea...@catastrophe.net wrote: > [..] > [ some bad paste ] Just a clarification: the rc script in /etc/rc.d/autossh actually looks like #!/bin/ksh # start autossh tunnel # requires remoteuser user with $HOME/.ssh/config and keys daemon="/usr/local/bin/aut

autossh fails after upgrade to 7.3

2023-04-25 Thread readme
After upgrading to 7.3 autossh is failing using the following rc script in /etc/rc.d/autossh. It looks like maybe switching to $daemon_user is not happening to find the correct ssh config stanzas? Thanks in advance for any help. ## Startup configuration #!/bin/ksh # start autossh tunnel # requi