diff --git a/files/usr/lib/systemd/system/ntpd.service b/files/usr/lib/systemd/system/ntpd.service new file mode 100644 index 0000000..1804c04 --- /dev/null +++ b/files/usr/lib/systemd/system/ntpd.service @@ -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