aboutsummaryrefslogtreecommitdiffstats
path: root/30-timesyncd
diff options
context:
space:
mode:
Diffstat (limited to '30-timesyncd')
-rwxr-xr-x30-timesyncd5
1 files changed, 4 insertions, 1 deletions
diff --git a/30-timesyncd b/30-timesyncd
index 2276cbb..a56652f 100755
--- a/30-timesyncd
+++ b/30-timesyncd
@@ -13,7 +13,10 @@ case "${STATUS}" in
echo "[Time]" >> /run/systemd/timesyncd.conf.d/${INTERFACE}.conf
echo "NTP = ${DHCP4_NTP_SERVERS}" >> /run/systemd/timesyncd.conf.d/${INTERFACE}.conf
- timedatectl set-ntp true
+ # systemd-timesyncd does not notice changed configuration. So if it is
+ # already running 'timedatectl set-ntp true' does not work.
+ # Restart the service instead.
+ systemctl restart systemd-timesyncd.service
fi
;;
down)