Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #968409

Bug#931414: ntpsec-ntpdate: if-up script fails to sync time

From Richard Laager <rlaager@wiktel.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#931414: ntpsec-ntpdate: if-up script fails to sync time
Date 2019-08-07 00:00 +0200
Message-ID <ysfES-7CT-7@gated-at.bofh.it> (permalink)
References (1 earlier) <yrYNH-5uh-1@gated-at.bofh.it> <yg7a2-1gr-5@gated-at.bofh.it> <ys2xX-7RP-7@gated-at.bofh.it> <yg7a2-1gr-5@gated-at.bofh.it> <ys2xX-7RP-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 8/6/19 2:53 AM, Masahiro Honda wrote:
> Richard Laager wrote:
>> The -s seems to allow multiple ntpdate-debian processes to run
>> simultaneously, which seems bad. It seems like a correct change to
>> remove that, though it makes me wonder why it was there in the first
>> place. (This code was inherited from the ntp package.)
>>
>> Are you getting interesting logging when ntpdate-debian runs?
> 
> I was mistaken about the -s.

Me too. The -s is for ntpdate-debian, not flock.

> In ntpdate of the ntp package, -s means to divert logging output to the
> system syslog facility.

Right. In ntpsec's ntpdate, this is converted to -p for ntpdig, which is
wrong. This is what is breaking things for you.

rlaager@watermelon:~/src/ntpsec/ntpsec-pkg$ attic/ntpdate -n -s
ntpdig -s -j -t 1 -p

rlaager@watermelon:~/src/ntpsec/ntpsec-pkg$ ntpdig -s -j -t 1 -p
option -p requires argument

I've submitted a patch upstream to fix this correctly:
https://gitlab.com/NTPsec/ntpsec/merge_requests/1011/

I suppose I'll also need to "Depends: bsdutils" to guarantee that
logger(1) is available.

-- 
Richard

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Find similar | Unroll thread


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