This is the mail archive of the 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]

problems with cygrunsrv and inetd


I looked on the internet and inetutils.README to install the inetd and the
ssh service.
When I create the windows service inetd with:
cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e

I noticed that the executable pointed to in the service is, which is wrong:

After removing it
cygrunsrv -R inetd

And using:
/usr/sbin/inetd.exe --install-as-service
I have in the service: C:\cygwin\usr\sbin\inetd.exe

Starting it shows the two inetd processes running, but netstat -an does not
show any listening ports!

I thought -d means debugging. Not daemon. But I tried it and changed the
registry to add the -d. The same behaviour is noticed.

Only by using the following command I have the ports open, and can connect:
$ /usr/sbin/inetd.exe -d &
[1] 2936

Ruud@pc11 /
$ ADD : echo proto=tcp, wait=0, user=root builtin=4080d0 server=internal
registered internal on 4
ADD : echo proto=udp, wait=0, user=root builtin=4080e0 server=internal
registered internal on 5
ADD : discard proto=tcp, wait=0, user=root builtin=4080f0 server=internal
registered internal on 6
ADD : discard proto=udp, wait=0, user=root builtin=408100 server=internal
registered internal on 7
ADD : daytime proto=tcp, wait=0, user=root builtin=408130 server=internal
registered internal on 8
ADD : daytime proto=udp, wait=0, user=root builtin=408140 server=internal
registered internal on 9
ADD : chargen proto=tcp, wait=0, user=root builtin=408150 server=internal
registered internal on 10
ADD : chargen proto=udp, wait=0, user=root builtin=408160 server=internal
registered internal on 11
ADD : time proto=tcp, wait=0, user=root builtin=408110 server=internal
registered internal on 12
ADD : time proto=udp, wait=0, user=root builtin=408120 server=internal
registered internal on 13
ADD : ftp proto=tcp, wait=0, user=root builtin=0 server=/usr/sbin/in.ftpd
registered /usr/sbin/in.ftpd on 14
ADD : telnet proto=tcp, wait=0, user=root builtin=0
registered /usr/sbin/in.telnetd on 15
ADD : shell proto=tcp, wait=0, user=root builtin=0 server=/usr/sbin/in.rshd
registered /usr/sbin/in.rshd on 16
ADD : login proto=tcp, wait=0, user=root builtin=0
registered /usr/sbin/in.rlogind on 17
ADD : exec proto=tcp, wait=0, user=root builtin=0 server=/usr/sbin/in.rexecd
registered /usr/sbin/in.rexecd on 18/usr/bin/ssh-host-config -y
ADD : talk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd
registered /usr/sbin/in.talkd on 19
ADD : ntalk proto=udp, wait=1, user=root builtin=0 server=/usr/sbin/in.talkd
registered /usr/sbin/in.talkd on 20

Using  /usr/sbin/inetd.exe  without the '-d' does not work.

Using the "/usr/bin/ssh-host-config -y" to configure ssh has the same
problem. In the service the executable is 'C:\cygwin\bin\cygrunsrv.exe'.

What is wrong ?

Please find attached the cygcheck file.

Thank you for helping me.

Attachment: cygcheck_output.txt
Description: Text document

Unsubscribe info:
Problem reports:

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