1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[Unit] Description=Synchronize time using ntpd ConditionPathExists=/etc/initrd-release DefaultDependencies=no After=initrd-network.service Requires=initrd-network.service [Service] ExecStart=/usr/bin/ntpd -gq [Install] WantedBy=sysinit.target [X-SystemdTool] InitrdBinary=/usr/bin/ntpd InitrdPath=/etc/ntp.conf