Package: ntpsec-ntpdate
Version: 1.1.3+dfsg1-2
Severity: normal

Dear Maintainer,


   * What led up to the situation?
     There is /etc/network/if-up.d/ntpsec-ntpdate.
     However, the time is not synchronized after the network 
     interface comes up.
     The time is synchronized when I execute ntpdate-debian.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     First, I disabled systemd-timesyncd.
       sudo systemctl disable systemd-timesyncd
     Then, I edited /etc/default/ntpsec-ntpdate.
       NTPDATE_USE_NTP_CONF="no"
       NTPOPTIONS="-b"
     Finally, I rebooted the OS.
       sudo shutdown -r now

   * What was the outcome of this action?
     The time was not synchronized after the network interface
     came up.

   * What outcome did you expect instead?
     I expected that the time will be synchronized after the
     network interface comes up.

I modified /etc/network/if-up.d/ntpsec-ntpdate.
Here is a patch.
--- ntpsec-ntpdate.orig 2019-02-14 11:30:00.899998213 +0000
+++ ntpsec-ntpdate      2019-07-04 09:35:51.210653439 +0100
@@ -31,11 +31,12 @@
 fi
 
 service="ntpsec"
+export service
 
 invoke-rc.d --quiet "$service" stop >/dev/null 2>&1 || true
 
 # Avoid running more than one at a time
-flock -n /run/lock/ntpsec-ntpdate /usr/sbin/ntpdate-debian -s $OPTS 
2>/dev/null || :
+flock -n /run/lock/ntpsec-ntpdate /usr/sbin/ntpdate-debian $OPTS 2>/dev/null | 
logger -t ntpsec-ntpdate || :
 
 invoke-rc.d --quiet "$service" start >/dev/null 2>&1 || true
 


-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
Architecture: armv7l

Kernel: Linux 4.19.42-v7 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ntpsec-ntpdate depends on:
ii  netbase      5.6
ii  python3      3.7.3-1
ii  python3-ntp  1.1.3+dfsg1-2

ntpsec-ntpdate recommends no packages.

ntpsec-ntpdate suggests no packages.

-- Configuration Files:
/etc/default/ntpsec-ntpdate changed:
NTPDATE_USE_NTP_CONF="no"
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 
3.debian.pool.ntp.org"
NTPOPTIONS="-b"
IGNORE_DHCP=""


-- no debconf information

Reply via email to