On Tue, Apr 26, 2016 at 10:59:15AM -0600, Antoine Jacoutot wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   ajacou...@cvs.openbsd.org       2016/04/26 10:59:15
> 
> Modified files:
>       etc/rc.d       : rc.subr 
> 
> Log message:
> Introduce rtable(4) support to rc.subr(8).
> It works by adding daemon_rtable=$id in /etc/rc.conf.local.
> rcctl(8) support coming in a few and so are the man pages bits.
> 
> If you want multiple instances of the same daemon running in different
> routing tables, just symlink the original rc.d script.
> e.g.
> # cd /etc/rc.d && ln -s dhcpd dhcpd42
> 
> Then enable your daemons as such in rc.conf.local:
> dhcpd_flags=
> dhcpd42_flags=
> dhcpd42_rtable=42

I forgot to mention that since dhcpd42 is not a base rc.d script, you must add 
it to pkg_scripts to enable it.
Or just use 'rcctl enable dhcpd42' which will do the right thing.

-- 
Antoine

Reply via email to