This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.3.22: problem adding inetd service


Hi,

I am failing to run my own service from inetd.
inetd.exe is installed as a service and works fine for standard services like telnet and ftp.
I added following line to /etc/services (is linked to C:\WINNT\system32\drivers\etc\services)
	bwloy           33333/tcp
I added following line to /etc/inetd.conf
	bwloy   stream  tcp     nowait  root    /usr/local/bin/in.bwlsd in.bwlsd
I then restarted the inetd service

The client application can connect to port 33333 but when it tries to use the socket, the connection is closed immediately. In my service application, the first thing I do, is to create a file, just to see if starts up, but is does not.

When I stop the inetd service and run it manually with the -d option, everything works fine. In this case inetd.exe is run from inside the cygwin environment. I guess it has something to do with environment ???
I tried to install my service application in several directories, e.g. in the same directory as in.ftpd, but it makes no difference.

The same application, compiled under Linux, and configured for inetd in the same manner, works.

I am out of ideas. Please help!

Thanks in advance
Patrick Rotsaert



$ uname -a
CYGWIN_NT-5.0 GVA-patrick 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin

Attachment: cygcheck.out
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]