]> git.ipfire.org Git - thirdparty/pdns.git/commit
systemd: Add "After" dependency on time-sync.target 12248/head
authorKevin P. Fleming <kevin@km6g.us>
Tue, 29 Nov 2022 11:14:10 +0000 (06:14 -0500)
committerKevin P. Fleming <kevin@km6g.us>
Tue, 29 Nov 2022 11:17:32 +0000 (06:17 -0500)
commitc6725600ec73a9e6d12da0b4fab8c41878be5f06
tree8888407994b3975ee72b588b43a82b7478fed07a
parente4695ec5018107ae056cd41796c43ef4c937c077
systemd: Add "After" dependency on time-sync.target

Adds 'After=time-sync.target' to the service unit files; this will not
have any immediate effect, unless the system administrator has also
enabled a unit which has a 'Before' dependency on that target;
there are none of those units enabled in a default configuration in
common distributions. systemd itself adds such an 'After' dependency
to all timer units with OnCalendar settings, and to some other units.

However, in a system which makes use of systemd-timesyncd, the admin
can enable systemd-time-wait-sync.service, which has such a
dependency. The result would be that none of the PowerDNS services on
the system would be started until after systemd-timesyncd is certain
that the system's clock is synchronized with the configured external
source.

A similar configuration can be achieved on systems which use ntpd,
chronyd, or other time synchronization tools.

Closes #11153.
pdns/dnsdistdist/dnsdist.service.in
pdns/ixfrdist.service.in
pdns/pdns.service.in
pdns/recursordist/pdns-recursor.service.in