Howto restart inetd service / daemon under Linux

last updated in Categories , , , , , ,

Q. Can you tell us the command to restart inetd service under Linux?

A. inetd is a daemon on many Linux and Unix like systems that manages Internet services such as ftp, pop3 and many others.

According to wikipedia:
Often called a super-server, inetd listens on all ports used by internet services such as FTP, POP3, and telnet. When a TCP packet or UDP packet comes in with a particular port number, inetd launches the appropriate server program to handle the connection. For services that are not expected to run with high loads, this method uses memory more efficiently, as the specific servers run only when needed.

Task: Start inetd service

Type the command:
# /etc/init.d/inetd start

Task: Stop inetd service

Type the command:
# /etc/init.d/inetd stop

Task: Restart inetd service

Type the command:
# /etc/init.d/inetd restart

See also:

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 9 comments/add one below):

9 comment

  1. Beginning with 2.3.11 xinetd is shipped with an optional inetd.conf compatibility mode.

    Parse all the xinetd config files first, then parse /etc/inetd.conf, and add services from there (if it exists). Use the -inetd_compat option to read inetd.conf.

    Read document: /usr/share/doc/xinetd/README.update-inetd if you have xinetd installed.

  2. Hi,
    Could anyone help me, how one can tell the port_numbers that are in use ? For instance, which port_number a printer could be using ?

  3. For Lnx RedHat: the service have name: xinetd
    /etc/init.d/xinetd stop
    /etc/init.d/xinetd start

    :)

    Have a question? Post it on our forum!