rcorder - wait for tap0
RW
rwmaillists at googlemail.com
Tue May 14 17:53:46 UTC 2019
On Tue, 14 May 2019 18:29:45 +0100
RW wrote:
> On Tue, 14 May 2019 08:49:52 +0200
> Per olof Ljungmark wrote:
>
> > Despite large amounts of cofee and time I cannot grasp how to make
> > this happen.
> >
> > What I want is
> >
> > Boot -> start openvpn/tap0 configured -> start named -> start jails
> >
> > Because the jails uses tap0 of course they cannot start before tap0
> > is up, but this is what happens in the default configuration.
> >
> > Surely this cannot be unique? How did you do it?
> >
> > Preferrably without messing with rc.d scripts that gets overwritten
> > when updated.
>
> You need an rc script in /usr/local/etc/rc.d with something like:
>
>
> # PROVIDE: vpnwait
> # REQUIRE: openvpn
> # BEFORE: <whatever string the jail rc.d script provides>
now I come to think about it openvpn runs after LOGIN, so either you
have to put up with the order
named, openvpn, jails
or rewrite the openvpn script.
What I did was to allow DNS to pass directly to one well-known server so
lookups could happen before openvpn started.
More information about the freebsd-questions
mailing list