Re: ntpd restart on IP address change the Debian way
Bob wrote:
>Bob wrote:
>> Is there such a thing?
>>
>> When my firewall / dhcp server / ntp server gets a fresh IP address
>> from my ISP the ntp daemon stops responding to requests.
>>
>Is the silence because it's a stupid question or because there isn't a
>preferred work around for this?
How does your firewall get its IP address?
If it is by PPP then you can scripts in /etc/ppp/ip-{up,down}.d to start
and stop the ntp daemon. This should get triggered when a new IP address
is negotiated.
Check the man page for pppd(8) and search for ip-up to see the details
of how it's used, but just dropping scripts in those directories should
be sufficient.
Reply to: