Hello All,
I'm trying to write a little code that determines the protocol being used by a given service that is running via xinetd.
I first look in the /etc/xinetd.d/-serviceName- files for an explicitly configured protocol. If not found, I check the main xinetd.conf file.
Frequently, there is no mention of a protocol in either place. So, I thought I'd check the '/etc/services' file. But, that most often lists at least two protocols (tcp and udp) for each service.
The reading I've done says that if the xinetd config files don't specify a protocol, then the default for the service is used.
The ultimate question: how do I determine the default protocol for a given service?
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
I'm trying to write a little code that determines the protocol being used by a given service that is running via xinetd.
I first look in the /etc/xinetd.d/-serviceName- files for an explicitly configured protocol. If not found, I check the main xinetd.conf file.
Frequently, there is no mention of a protocol in either place. So, I thought I'd check the '/etc/services' file. But, that most often lists at least two protocols (tcp and udp) for each service.
The reading I've done says that if the xinetd config files don't specify a protocol, then the default for the service is used.
The ultimate question: how do I determine the default protocol for a given service?
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.