How To Tell If Your Linux Server Uses xinetd OR inetd sever
Q. How to tell if my Linux server is using xinetd or inetd service?
A. inetd is also known as super-server daemon and it runs on many Unix / Linux systems that manages Internet service such as ftp or pop3 or telnet.
xinetd (eXtended InterNET Daemon) is also an open-source daemon which runs on many Unix / Linux systems and manages Internet-based services such as ftp or telnet.
You can use netstat or ps command to find out if Linux / UNIX server using xinetd or inetd server:
# ps aux | egrep '[xi]netd'
OR
# netstat -tulpn | grep LISTEN | egrep '[xi]netd'
Sample output:
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 8552/inetd
OR
tcp 0 0 0.0.0.0:904 0.0.0.0:* LISTEN 5271/xinetd
Usually,
- RHEL / CentOS / Fedora Linux runs xinetd.
- *BSD / Debian / Ubuntu Linux / Mac OS X runs inetd.
- Default inetd configuration file location /etc/inetd.conf
- Default xinetd configuration file location /etc/xinetd.conf
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Linux / UNIX killing a process and restarting the same
- Increase the number of telnet sessions allowed
- Howto: configure xinetd service under Linux or UNIX systems
- Howto restart inetd service / daemon under Linux
- How do I turn on telnet service on for a Linux / FreeBSD system?
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /etc/inetd.conf, /etc/xinetd.conf, egrep command, eXtended InterNET Daemon, grep command, inetd, inetd server, internet daemon, mac os x, netstat command, ps command, server daemon, xinetd



March 11th, 2008 at 7:10 am
actualy you dont have to type:
grep ‘[xi]netd’
this one should be more accurate:
grep ‘[x]inetd’
March 11th, 2008 at 7:12 am
ohh.. and when you use -l (LISTEN) option of netstat … you dont have to grep for LISTEN