summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/files/ntpdate.service
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/ntp/files/ntpdate.service')
-rw-r--r--recipes-support/ntp/files/ntpdate.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-support/ntp/files/ntpdate.service b/recipes-support/ntp/files/ntpdate.service
new file mode 100644
index 0000000..10cbd70
--- /dev/null
+++ b/recipes-support/ntp/files/ntpdate.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Network Time Service (one-shot ntpdate mode)
+Before=ntpd.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ntpdate-sync silent
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target