1.3.22: problem adding inetd service
Patrick Rotsaert
patrick-rotsaert@pandora.be
Fri Nov 28 17:35:00 GMT 2003
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 26421 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031128/aac8baec/attachment.obj>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list