summarylogtreecommitdiffstats
path: root/ntpdate.service
diff options
context:
space:
mode:
Diffstat (limited to 'ntpdate.service')
-rw-r--r--ntpdate.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/ntpdate.service b/ntpdate.service
new file mode 100644
index 000000000000..e85852e276cb
--- /dev/null
+++ b/ntpdate.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=One-Shot Network Time Service
+After=network.target nss-lookup.target
+Before=ntpd.service
+
+[Service]
+Type=oneshot
+PrivateTmp=true
+ExecStart=/usr/bin/ntpd -q -n -g -u ntp:ntp
+
+[Install]
+WantedBy=multi-user.target