summarylogtreecommitdiffstats
path: root/ntpdate.service
diff options
context:
space:
mode:
authorThai Chung2017-08-02 18:01:54 +0200
committerThai Chung2017-08-02 18:05:17 +0200
commit28398ec06e648af677cf20e108062fef7d9b2384 (patch)
treec692d9fc567c534a10ae859e31168dbf85748145 /ntpdate.service
downloadaur-ntp-smeared.tar.gz
ntp-4.2.8p10
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