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.
Documentation=man:dnsdist(1)
Documentation=https://dnsdist.org
Wants=network-online.target
-After=network-online.target
+After=network-online.target time-sync.target
[Service]
ExecStartPre=@bindir@/dnsdist --check-config
Documentation=man:ixfrdist.yml(5)
Documentation=https://doc.powerdns.com
Wants=network-online.target
-After=network-online.target
+After=network-online.target time-sync.target
[Service]
Type=simple
Documentation=man:pdns_server(1) man:pdns_control(1)
Documentation=https://doc.powerdns.com
Wants=network-online.target
-After=network-online.target mysqld.service postgresql.service slapd.service mariadb.service
+After=network-online.target mysqld.service postgresql.service slapd.service mariadb.service time-sync.target
[Service]
ExecStart=@sbindir@/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
Documentation=https://doc.powerdns.com
Wants=network-online.target nss-lookup.target
Before=nss-lookup.target
-After=network-online.target
+After=network-online.target time-sync.target
[Service]
ExecStart=@sbindir@/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no