RE: [chrony-users] chronyc always exits 0 without any output

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


ntp shows up in /etc/services yep

--Matthew Wilkinson


-----Original Message-----
From: Stuart Maclean [mailto:stuart@xxxxxxxxxxxxxxxxxx] 
Sent: Thursday, April 19, 2018 13:40
To: chrony-users@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**********************************************************************
This is a long shot, since chrony may not work in the same way as ntp, but when I had similar issues with ntpq exiting unexpectedly, turns out I didn't have these lines

ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so that ports don't have to be hard coded in the sources.  Seems like overkill to me.

Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
>>
>> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The 
>> chronyd will start up, read the config, and synchronize just fine 
>> (according to the syslogs).
>
> Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
>
>>
>>
>>
>> However, when I run chronyc, no matter what options I give it (even
>> -d) and even if I
>> give it no options, it just exits with return 0 and no output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
>>
>>
>> Anyone run into this before or know of a way I can find out why itʼs 
>> doing this? Iʼve ran an strace on it, and it just quickly runs 
>> through some calls and exits 0.
>
> "some calls" is a bit vague.
> Does chronyc -d give you any hints?
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Matthew Wilkinson
>>
>>
>>
>>
>>


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/