Permalink
Browse files

ntpd: convert to Type=forking

Place pidfile directly in /run, as ntpd is run as root anyway.
  • Loading branch information...
1 parent b3cd152 commit 43ed3eb76eac5d75b8d4e561ad4bc7836e448bd9 @hdhoang hdhoang committed Jun 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 service/ntpd.service
View
4 service/ntpd.service
@@ -3,8 +3,10 @@ Description=Network Time Service
After=syslog.target
[Service]
+Type=forking
+PIDFile=/run/ntpd.pid
EnvironmentFile=/etc/conf.d/ntp-client.conf
-ExecStart=/usr/bin/ntpd -n $NTPD_ARGS
+ExecStart=/usr/bin/ntpd $NTPD_ARGS -p /run/ntpd.pid
[Install]
WantedBy=multi-user.target

0 comments on commit 43ed3eb

Please sign in to comment.