LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about xinetd? (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-xinetd-342668/)

stefaandk 07-12-2005 10:46 PM

Question about xinetd?
 
I just added a service to my xinet.d directory

Then I issue the command /etc/rc.d/init.d/xinetd restart

But how can I actually verify that a service starting through xinetd is running.

The services in xinet.d directory dont' seem to list seperately in a ps -aux

Ta

btmiller 07-12-2005 10:49 PM

Nope, the point of xinetd is to have one process only running (handy if you havew a bunch of little used network servers) that farms off connections to the actual server when required. Can you just try connecting to your service? Also, if you look at the logs, they will tell you how many services xinetd started -- check that it matches the number you expect.

stefaandk 07-12-2005 11:16 PM

K, anywhere where I can log xinetd specifically?

Fedora system btw

btmiller 07-13-2005 12:17 AM

Hmmm ... assuming you're using the default /etc/syslog.conf, I think that the xinetd log messages show up in /var/log/messages.

stefaandk 07-13-2005 12:27 AM

Deviating a bit from my original question but that all seems to be OK, his service is starting on port 5666, if it's starting

I also put an entry in services, but I keep getting a connection refused on that port, there is no firewall running so I can only assume that xinitd didn't start my service.

Been working a bit with the netstat command to find whether I can see if there is any service sitting on port 5666 but maybe I'm not using the right syntax.

How can I see which services are running on a particular port?

Michael Johnson 07-13-2005 03:10 AM

Run this command and it will tell you what services are listening.
#netstat -altpu


All times are GMT -5. The time now is 10:09 PM.