xref: /OK3568_Linux_fs/buildroot/package/openntpd/ntpd.service (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun[Unit]
2*4882a593SmuzhiyunDescription=OpenNTP Daemon
3*4882a593SmuzhiyunAfter=network.target
4*4882a593SmuzhiyunConflicts=systemd-timesyncd.service
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun[Service]
7*4882a593SmuzhiyunType=simple
8*4882a593Smuzhiyun# Turn off DNSSEC validation for hostname look-ups, since those need the
9*4882a593Smuzhiyun# correct time to work, but we likely won't acquire that without NTP. Let's
10*4882a593Smuzhiyun# break this chicken-and-egg cycle here.
11*4882a593SmuzhiyunEnvironment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
12*4882a593SmuzhiyunExecStart=/usr/sbin/ntpd -s -d
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun[Install]
15*4882a593SmuzhiyunWantedBy=multi-user.target
16