How do I check the version of a running service?
20:42 07 Aug 2019

I am trying to locate the version of a service that starts at bootup. For question sake lets say its "xyz". I am aware of the common actions for a service. I just need to locate what version that service is. I searched the man pages for the service action and came up with nothing. I need this command line for both Ubuntu and CentOS platforms.

I have tried something as simple as;

service xyz --version

or

./xyz -version or ./xyz -v ...etc

So far I have not be able to find anything (document, command, start, stop, etc) to provide this info.

Any suggestions are appreciated Thanks

ubuntu service centos version