Re: rc.d and rtable

2016-01-28 Thread Antoine Jacoutot
> > # ln -s /etc/rc.d/sshd /etc/rc.d/sshdt2 > > # rcctl enable ssht2 > > # rcctl set ssht2 flags -f /etc/ssh/wunder_config > > Aha, that is what I was looking for. So if this works I'm totally happy :) > Didn't know that you can just symlink rc scripts and everything will work. Yeah, this was don

Re: rc.d and rtable

2016-01-28 Thread Claudio Jeker
On Wed, Jan 27, 2016 at 09:47:04PM +0100, Antoine Jacoutot wrote: > > > rc.d framework is so nice... not sure if this is nice way but it > > > works. Maybe check for existing rtable is not great. > > > > If I see this correctly you add a foo_rtable variable to rc.conf.local. > > I think there is s

Re: rc.d and rtable

2016-01-28 Thread Antoine Jacoutot
On Thu, Jan 28, 2016 at 03:50:33AM -0500, Jiri B wrote: > On Thu, Jan 28, 2016 at 11:27:40AM +0300, Vadim Zhukov wrote: > > [...] > > The code looks like more or less fine (I'll do a more careful review a bit > > later), but there are documentation bits missing. > > That was a POC, anyway I'm not

Re: rc.d and rtable

2016-01-28 Thread Jiri B
On Thu, Jan 28, 2016 at 11:27:40AM +0300, Vadim Zhukov wrote: > [...] > The code looks like more or less fine (I'll do a more careful review a bit > later), but there are documentation bits missing. That was a POC, anyway I'm not very familiar with mandoc :/ j.

Re: rc.d and rtable

2016-01-28 Thread Vadim Zhukov
27 янв. 2016 г. 21:29 пользователь "Jiri B" написал: > > On Wed, Jan 27, 2016 at 01:40:14PM +0100, Antoine Jacoutot wrote: > > On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > > > Would it be worth to extend rc.d for rtable knobs? > > > > > > - daemon_rtable varible

Re: rc.d and rtable

2016-01-27 Thread Jiri B
On Wed, Jan 27, 2016 at 09:30:27PM +0100, Claudio Jeker wrote: > On Wed, Jan 27, 2016 at 12:58:48PM -0500, Jiri B wrote: > > On Wed, Jan 27, 2016 at 01:40:14PM +0100, Antoine Jacoutot wrote: > > > On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > > > > Would it be worth to extend rc.d for r

Re: rc.d and rtable

2016-01-27 Thread Antoine Jacoutot
> > rc.d framework is so nice... not sure if this is nice way but it > > works. Maybe check for existing rtable is not great. > > If I see this correctly you add a foo_rtable variable to rc.conf.local. > I think there is some drawback to this solution. > You can only have one daemon running in one

Re: rc.d and rtable

2016-01-27 Thread Claudio Jeker
On Wed, Jan 27, 2016 at 12:58:48PM -0500, Jiri B wrote: > On Wed, Jan 27, 2016 at 01:40:14PM +0100, Antoine Jacoutot wrote: > > On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > > > Would it be worth to extend rc.d for rtable knobs? > > > > > > - daemon_rtable varible > > > - rc_* function

Re: rc.d and rtable

2016-01-27 Thread Antoine Jacoutot
On Wed, Jan 27, 2016 at 12:58:48PM -0500, Jiri B wrote: > On Wed, Jan 27, 2016 at 01:40:14PM +0100, Antoine Jacoutot wrote: > > On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > > > Would it be worth to extend rc.d for rtable knobs? > > > > > > - daemon_rtable varible > > > - rc_* function

Re: rc.d and rtable

2016-01-27 Thread Jiri B
On Wed, Jan 27, 2016 at 01:40:14PM +0100, Antoine Jacoutot wrote: > On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > > Would it be worth to extend rc.d for rtable knobs? > > > > - daemon_rtable varible > > - rc_* functions (route exec, pgrep/pkill -T $rtable...) > > > > Or are routing ta

Re: rc.d and rtable

2016-01-27 Thread Antoine Jacoutot
On Wed, Jan 27, 2016 at 06:47:57AM -0500, Jiri B wrote: > Would it be worth to extend rc.d for rtable knobs? > > - daemon_rtable varible > - rc_* functions (route exec, pgrep/pkill -T $rtable...) > > Or are routing tables not much used thus not worth to make > rc.d more complicated? There has be

rc.d and rtable

2016-01-27 Thread Jiri B
Would it be worth to extend rc.d for rtable knobs? - daemon_rtable varible - rc_* functions (route exec, pgrep/pkill -T $rtable...) Or are routing tables not much used thus not worth to make rc.d more complicated? j.