summarylogtreecommitdiffstats
path: root/ntpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd.service')
-rw-r--r--ntpd.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/ntpd.service b/ntpd.service
new file mode 100644
index 00000000000..267615cb96d
--- /dev/null
+++ b/ntpd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Network Time Service
+After=network.target nss-lookup.target
+Conflicts=systemd-timesyncd.service
+
+[Service]
+Type=forking
+PrivateTmp=true
+ExecStart=/usr/bin/ntpd -g -u ntp:ntp
+Restart=always
+
+[Install]
+WantedBy=multi-user.target