Reference:
Http://www.ibm.com/developerworks/cn/linux/l-cn-udev/
Http://linux.chinaunix.net/techdoc/system/2008/07/11/1017050.shtml
Https://www.freebsd.org/doc/zh_CN/books/handbook/network-inetd.html
Inetd Introduction
The Network Service Manager used in AIX is still inetd, although its upgraded version xinetd has long been used.
In AIX, inetd is a SRC subsystem of the tcpip system resource controller group. The STARTUP script is in/usr/sbin/inetd. The two files used in the application are/etc/services and/etc/inetd. conf. The inetd. conf file is the inetd configuration file, and a line in the file represents a SRC service managed by inetd.
Inetd. conf file
The format of each row is:
Service name socket type protocol waiting/non-waiting user program parameters
The service name must be defined in the/etc/services file first.
The socket type can be stream, dgram, raw, or seqpacket. Stream indicates a stream socket used for the tcp protocol. Dgram is a data PACKET socket used for udp protocol.
The protocols include tcp, udp, tcp6, and udp6. Use a protocol with six parameters when the service needs to use IPv6.
Waiting/non-waiting. wait means that the service is not allowed to be concurrently. The next request must be accepted only after the previous request is processed. nowait is aware that service concurrency is allowed. (If you have any questions, refer to the description in document 2 to be verified)
User, which is the permission of the user to execute the service.
Program to start the script used by the Service.
Program parameters, the command parameters used to start the service.
/Etc/services file
The/etc/services file defines the network service name and socket number used by the Service.
The content format of each row is:
Service name socket number/protocol
1-1024 indicates the socket number reserved by the system.