ntpd file to make sure time syncs quickly at startup.
This commit is contained in:
parent
e5493e19b9
commit
368b0192fa
14
files/usr/lib/systemd/system/ntpd.service
Normal file
14
files/usr/lib/systemd/system/ntpd.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Network Time Service
|
||||||
|
After=network.target nss-lookup.target
|
||||||
|
Conflicts=systemd-timesyncd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
PrivateTmp=true
|
||||||
|
ExecStartPre=/usr/bin/ntpd -gq
|
||||||
|
ExecStart=/usr/bin/ntpd -g -u ntp:ntp
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user