How To Tell If Your Linux Server Uses xinetd OR inetd sever

How To Tell If Your Linux Server Uses xinetd OR inetd sever

To determine if your Linux server uses the xinetd or inetd daemon, you can check the status of the xinetd and inetd services using the systemctl command.

To check the status of the xinetd service, run the following command:

systemctl status xinetd
‮cruoS‬e:www.lautturi.com

If the xinetd service is running, the output will look something like this:

● xinetd.service - Xinetd IPv4 service
   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-01-01 00:00:00 UTC; 3h 2min ago
 Main PID: 12345 (xinetd)
   CGroup: /system.slice/xinetd.service
           └─12345 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6

Jan 01 00:00:00 server systemd[1]: Started Xinetd IPv4 service.

If the xinetd service is not running, the output will look something like this:

● xinetd.service - Xinetd IPv4 service
   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

To check the status of the inetd service, run the following command:

systemctl status inetd

If the inetd service is running, the output will look something like this:

● inetd.service - Inetd Internet super server
   Loaded: loaded (/usr/lib/systemd/system/inetd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-01-01 00:00:00 UTC; 3h 2min ago
 Main PID: 12345 (inetd)
   CGroup: /system.slice/inetd.service
           └─12345 /usr/sbin/inetd -wW

Jan 01 00:00:00 server systemd[1]: Started Inetd Internet super server.

If the inetd service is not running, the output will look something like this:

● inetd.service - Inetd Internet super server
   Loaded:
Created Time:2017-10-29 22:08:33  Author:lautturi