Dear Maintainer,

I'd like to add that the problem includes chrony too - 50-ntp.conf refers to 
non-existent "chronyd" serivce (actual one's called "chrony").
I propose to include this patch that solves the problem for me.

Reco
--- a/dhcpcd-hooks/50-ntp.conf	2018-11-14 11:27:08.988587089 +0000
+++ b/dhcpcd-hooks/50-ntp.conf	2018-11-14 11:27:41.523708030 +0000
@@ -36,8 +36,8 @@
 # Derive service name from configuration
 if [ -z "$ntp_service" ]; then
 	case "$NTP_CONF" in
-	*chrony.conf)		ntp_service=chronyd;;
-	*)			ntp_service=ntpd;;
+	*chrony.conf)		ntp_service=chrony;;
+	*)			ntp_service=ntp;;
 	esac
 fi
 
@@ -46,7 +46,7 @@
 if [ "$ntp_service" = ntpd ] && type invoke-rc.d >/dev/null 2>&1; then
 	[ -e /var/lib/ntp ] || mkdir /var/lib/ntp
 	: ${ntp_service:=ntp}
-	: ${NTP_DHCP_CONF:=/var/lib/ntp/ntp.conf.dhcp}
+	: ${NTP_DHCP_CONF:=/run/ntp.conf.dhcp}
 fi
 
 : ${ntp_restart_cmd:=service_condcommand $ntp_service restart}

Reply via email to