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

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


This bit is interesting:

from strace:

unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or directory)
bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, 110) = 0
chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"}, 110) = 0
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(0, TCGETS, 0x7fffeb781dc0)        = -1 ENOTTY (Inappropriate ioctl for device)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f8cca7000
read(0, "", 4096)                       = 0
getsockname(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, [37]) = 0


--Matthew Wilkinson


-----Original Message-----
From: Bill Unruh [mailto:unruh@xxxxxxxxxxxxxx] 
Sent: Thursday, April 19, 2018 13:34
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.]

**********************************************************************

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.


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