summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/files/ntpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/ntp/files/ntpd.service')
-rw-r--r--recipes-support/ntp/files/ntpd.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-support/ntp/files/ntpd.service b/recipes-support/ntp/files/ntpd.service
new file mode 100644
index 0000000..0e3d7cd
--- /dev/null
+++ b/recipes-support/ntp/files/ntpd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Network Time Service
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/ntpd.pid
+ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g
+
+[Install]
+WantedBy=multi-user.target