Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #963240
| From | Masahiro Honda <honda@mechatrax.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#931414: ntpsec-ntpdate: if-up script fails to sync time |
| Date | 2019-07-04 12:30 +0200 |
| Message-ID | <yg7a2-1gr-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#931414: ntpsec-ntpdate: if-up script fails to sync time Masahiro Honda <honda@mechatrax.com> - 2019-07-04 12:30 +0200
Bug#931414: ntpsec-ntpdate: if-up script fails to sync time Richard Laager <rlaager@wiktel.com> - 2019-08-06 06:00 +0200
Bug#931414: ntpsec-ntpdate: if-up script fails to sync time Masahiro Honda <honda@mechatrax.com> - 2019-08-06 10:00 +0200
Bug#931414: ntpsec-ntpdate: if-up script fails to sync time Richard Laager <rlaager@wiktel.com> - 2019-08-07 00:00 +0200
csiph-web