| Re: [chrony-users] Obtaining current version of chronyd via chronyc | 
[ Thread Index | 
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
] 
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
 
- Subject: Re: [chrony-users] Obtaining current version of chronyd via chronyc
 
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
 
- Date: Mon, 27 Jan 2020 09:55:26 +0100
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;	s=mimecast20190719; t=1580115332;	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:	 to:to:cc:mime-version:mime-version:content-type:content-type:	 content-transfer-encoding:content-transfer-encoding:	 in-reply-to:in-reply-to:references:references;	bh=Pn/UgvSbu7rTW4I+xdfBnHzeU2iZHTggEAR/6GaIzBQ=;	b=UKvAAjXIhCGLfJSW3iEFrsjAPb9Jlg+R2nxbCjTdhvfnJZePkCPTQnXz2dgAwVyixDJdzV	jkv4qO9KqnTiKF5Kp+VlNDX1Fzoj0rWSULVjISxYgYJ4d4Q7lPfoYcDxK7Xgh9K31Itidn	b6y4IfBVhAP8DsbLiszxmyOmq/fNbMY=
 
On Fri, Jan 24, 2020 at 03:08:33PM -0800, Watson Ladd wrote:
> Dear all,
> 
> I'm writing because when we upgrade chronyd across our machines we'd
> like to know the new version is running, and access that data
> programmatically. Unfortunately it seems that chronyc -v prints the
> version of chronyc, not chronyd. Are there solutions people have, or
> should I write and submit a patch?
chronyd -v prints the version and you can check if the running
instance is the current chronyd binary by reading the exe link in
/proc.
If restart of the service failed after an upgrade, you would get:
# readlink /proc/$(pidof chronyd)/exe
/usr/sbin/chronyd (deleted)
-- 
Miroslav Lichvar
--
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.