dave14305
Part of the Furniture
I think it would be useful to have a user script that could run when ntpd_synced is run after a successful NTP sync. Today, scripts have to loop and wait for ntp_ready to be set to 1. Why not a triggered event when ntp is synced?
I'm specifically thinking about my use case where I would start Unbound without the DNSSEC validator module enabled, but once ntp is synced, I would rewrite the config to enable the validator module and reload Unbound, similar to how dnsmasq and stubby get restarted after time is synced.
It may not be as simple as adding a run_custom_script command near the end of ntpd_synced_main, but has this idea been considered and abandoned before? Any other use cases that would benefit from a triggered NTP sync notification?
I'm specifically thinking about my use case where I would start Unbound without the DNSSEC validator module enabled, but once ntp is synced, I would rewrite the config to enable the validator module and reload Unbound, similar to how dnsmasq and stubby get restarted after time is synced.
It may not be as simple as adding a run_custom_script command near the end of ntpd_synced_main, but has this idea been considered and abandoned before? Any other use cases that would benefit from a triggered NTP sync notification?