RE: [chrony-users] chronyc always exits 0 without any output |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: "chrony-users@xxxxxxxxxxxxxxxxxxxx" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
- Subject: RE: [chrony-users] chronyc always exits 0 without any output
- From: "Wilkinson, Matthew" <MatthewWilkinson@xxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2018 18:57:44 +0000
- Accept-language: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliantenergy.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=alliantenergy_12_2014; bh=RZLxRWB1PEzH1rKpUQZY4jjmRtzFa+ZlPsDFgkqBoH4=; b=KrTBcRO5mi+JQQfiPn1hgVMS6NXl4m9BI5Go+0wW4jm5aaoxcQgiw6ZlqRQRtmPwJats SpM/9j0ZlnBuwTTua92JpTF/UC6lRsBpOFrB8Wl85kIn+AssNj361wPm9eFSCPvErfLB kHQW3dO5w9Ce7ME1bkxLgHvqMEFaiBrFWgTrkXBgIkZl1Ghm2KMrYp0P5PWwK8B9bbBi Qbu+n2ewPEuAfta10wHawFQXRiUuxgYc3i/Zmpt3pEdP2X4S9gS4u7TLdbknGwagry47 5wbm7ytrjboLiuLPpLN4McAtHspRDPJA/tBnjYnuRq44P2lHdEvM8ZE7o3cRV/f7+uFp GA==
- Thread-index: AdPYBpIh4BkYS/fUT5iuXWWgl+X4oQAMFWCAAAmqHIA=
- Thread-topic: [chrony-users] chronyc always exits 0 without any output
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.