Howto restart inetd service / daemon under Linux

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:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 9 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
9 comments… add one
  • tuxxer Sep 8, 2007 @ 15:35

    Does not work for me: File does not exist!

  • nick humphrey May 28, 2008 @ 6:39

    just try:
    locate inetd

  • nick humphrey May 28, 2008 @ 6:48

    sudo apt-get install telnetd

  • nick humphrey May 28, 2008 @ 7:32

    then to restart inetd you run:
    sudo /etc/init.d/openbsd-inetd restart

    • Fractalspace Dec 5, 2014 @ 17:01

      YES. ‘openbsd-inetd’ it is.

  • mariaczi Feb 1, 2010 @ 10:18

    The best way is
    killall -HUP inetd
    will work on all linux version :)

  • zimmer Aug 29, 2010 @ 19:01

    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.

  • Felix Mwango Mutale Jan 10, 2011 @ 14:19

    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 ?

  • Emil May 19, 2015 @ 7:51

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


Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum