summaryrefslogtreecommitdiff
path: root/extra/ntp/ntpd.service
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ntp/ntpd.service')
-rw-r--r--extra/ntp/ntpd.service8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/ntp/ntpd.service b/extra/ntp/ntpd.service
index e0cbf879e..dcb5df634 100644
--- a/extra/ntp/ntpd.service
+++ b/extra/ntp/ntpd.service
@@ -1,12 +1,12 @@
[Unit]
Description=Network Time Service
-After=network.target
+After=network.target nss-lookup.target
[Service]
Type=forking
-PIDFile=/run/ntpd.pid
-EnvironmentFile=/etc/conf.d/ntpd.conf
-ExecStart=/usr/bin/ntpd $NTPD_ARGS -p /run/ntpd.pid
+PrivateTmp=true
+ExecStart=/usr/bin/ntpd -g -u ntp:ntp
+ControlGroup=cpu:/
[Install]
WantedBy=multi-user.target