sendmail && dhcp

Michael Ross gmx at ross.cx
Thu Feb 26 21:38:14 UTC 2015


Am 2015-02-26 20:40, schrieb Matthias Apitz:
> El día Thursday, February 26, 2015 a las 10:50:50AM -0500, Lowell
> Gilbert escribió:
> 
>> Matthias Apitz <guru at unixarea.de> writes:
>> 
>> > What would be the best way to restart (or defer the start of sendmail)
>> > until the correct DNS is in place? For the tun interface I'm using a
>> > devd(8) hook, but I'm looking more for a general solution.
>> 
>> dhclient-script(8) is one way.
> 
> Thanks for the hint. I've played around with the hooks script
> /etc/dhclient-exit-hooks; but this is not invoked when PPP brings up 
> the
> interface tun(4), routing etc. because this is not done by dhclient(8),
> but directly by the pppd(8) and its hooks.
> 
> 	matthias

/etc/ppp/ppp.link(up|down) ?

Quote man ppp:
      If	the /etc/ppp/ppp.linkup	file is	available, its contents	are 
executed
      when the PPP connection is	established.

Michael


More information about the freebsd-questions mailing list