Configuring and Managing MPE/iX Internet Services (August 2002)
Chapter 2
Internet Daemon
inetd Configuration File
28
Adding New Services to inetd Configuration
There are two steps required to add a new service to the suite of Internet Services offered on your system.
First you enter a line of information for the specific service to the inetd configuration file. Then you have
inetd reread its configuration file, which is sometimes called reconfiguring the Internet daemon. In the
unlikely event that inetd is not running when you edit the configuration file, you will invoke the new
configuration by starting inetd. Starting inetd is explained later in this chapter.
To edit the inetd configuration file, do the following:
1. Open the configuration file with an MPE text editor.
The contents will resemble the following:
######################################################################
#
# sample inetd configuration file
#
# For information on how to configure this file refer to the Configuring
# and Managing Internet Services manual
#
# Note: The entries cannot be preceded by a blank space. Blank lines
# and lines beginning with a pound sign(#) are ignored.
#
######################################################################
#
# Internet server configuration database
#
echo stream tcp nowait MANAGER.SYS internal
echo dgram udp nowait MANAGER.SYS internal
daytime stream tcp nowait MANAGER.SYS internal
daytime dgram udp nowait MANAGER.SYS internal
time stream tcp nowait MANAGER.SYS internal
time dgram udp nowait MANAGER.SYS internal
discard stream tcp nowait MANAGER.SYS internal
discard dgram udp nowait MANAGER.SYS internal
chargen stream tcp nowait MANAGER.SYS internal
chargen dgram udp nowait MANAGER.SYS internal
#telnet stream tcp nowait MANAGER.SYS internal
#bootps dgram udp wait MANAGER.SYS /SYS/NET/BOOTPD bootpd
#tftp dgram udp wait USER.TFTP /SYS/NET/TFTPD tftpd
#
2. Each of the services that run under inetd must have an entry in the configuration file. For example, the
entry for the tftp program in INETDCNF.NET.SYS looks like this:
tftp dgram udp wait USER.TFTP /SYS/NET/TFTPTD tftpd
For the service that you are installing, check the file to see if it has the correct entry. (Each chapter in the
remainder of this manual has this information. The meaning of the individual fields in an entry are
explained later in this chapter.) If not, enter the line now using the “Editing Tips” section, as a guideline.
NOTE For more information on FTP, refer to Installing and Managing HP ARPA File Transfer
Protocol Network Manager’s Guide or HP ARPA File Transfer Protocol User’s Guide.
3. Save the file and exit the editor program.
4. Signal inetd to reread the configuration file by entering the following command at the CI prompt:
INETD.NET.SYS -c
Or you may enter this command from the POSIX shell:
$/etc/inetd -c