From c211ab2b114dbc0eafe3651e4569e257b5612edf Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Wed, 15 May 2024 09:21:55 -0400 Subject: [PATCH] fix: update ntpd-rs Signed-off-by: Devin Buhl --- apps/ntpd-rs/Dockerfile | 2 +- apps/ntpd-rs/entrypoint.sh | 5 +++-- apps/ntpd-rs/ntp.toml | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/ntpd-rs/Dockerfile b/apps/ntpd-rs/Dockerfile index 20c3426c4..be4ed9a8d 100644 --- a/apps/ntpd-rs/Dockerfile +++ b/apps/ntpd-rs/Dockerfile @@ -26,7 +26,7 @@ RUN /usr/local/bin/ntp-daemon --help RUN /usr/local/bin/ntp-ctl --help RUN /usr/local/bin/ntp-metrics-exporter --help -COPY ./apps/ntpd-rs/ntp.toml /etc/ntp.toml +COPY ./apps/ntpd-rs/ntp.toml /etc/ntpd-rs/ntp.toml COPY ./apps/ntpd-rs/entrypoint.sh /entrypoint.sh USER nobody:nogroup diff --git a/apps/ntpd-rs/entrypoint.sh b/apps/ntpd-rs/entrypoint.sh index c713b6be2..3cb555d50 100755 --- a/apps/ntpd-rs/entrypoint.sh +++ b/apps/ntpd-rs/entrypoint.sh @@ -2,10 +2,11 @@ if [[ ! -f "/config/ntp.toml" ]]; then printf "Copying over default configuration ...\n" - cp /etc/ntp.toml /config/ntp.toml + cp /etc/ntpd-rs/ntp.toml /config/ntp.toml fi #shellcheck disable=SC2086 exec \ /usr/local/bin/ntp-daemon \ - --config /config/ntp.toml + --config /config/ntp.toml \ + --log-level debug diff --git a/apps/ntpd-rs/ntp.toml b/apps/ntpd-rs/ntp.toml index 1d1fa4258..f4cdb244c 100644 --- a/apps/ntpd-rs/ntp.toml +++ b/apps/ntpd-rs/ntp.toml @@ -1,2 +1,5 @@ [[server]] listen = "0.0.0.0:123" + +[synchronization] +local-stratum = 8