From 368b0192fa84db0d1eccd938b738f9c405976140 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 9 Feb 2022 05:14:39 -0500 Subject: [PATCH] ntpd file to make sure time syncs quickly at startup. --- files/usr/lib/systemd/system/ntpd.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 files/usr/lib/systemd/system/ntpd.service 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