Newsgroups: comp.unix.questions
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!ox.com!math.fu-berlin.de!grasp1!wolf
From: wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel)
Subject: Create an inetd sub-server
Summary: how to create a new inetd service
Message-ID: <1991Jun25.071855.20102@grasp1.univ-lyon1.fr>
Date: Tue, 25 Jun 1991 07:18:55 GMT
Organization: INSA Departement Informatique, Lyon, France
Keywords: inetd, service, server

I wish to create a new service working under inetd that, as with
telnet,ftp does stdio with the peer.

So I created a small program that does nothing except printf a text +
fflush(stdout).

I replaced in inetd.conf the ftp server with this new program.
telnet host ftp and I get the message + connection closed, as excpected.

After that, I wanted to move it on another service name.
I added a service in /etc/services similar to telnet, with a new name
and a new port number (I tried unused priviledges and non priviledged
port nulmbers).

I added a line in /etc/inetd.conf pointing to my program for the new defined
service and refreshed inetd.

telnet host new_service hangs, as if inetd could not start the application
(the connection is established). All other parameters are
identical to telnet.

Any suggestions on what makes this hanging? Did I miss an important step?


-- 
Christophe Wolfhugel    | Email: wolf@grasp1.univ-lyon1.fr
INSA - Dpt Informatique | "Le progres ne vaut que s'il est partage par tous,"
Lyon, France            | "les greves aussi. Hassan Cehef: c'est penible!"
