Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Matt Munz" To: Subject: (solved) RE: basic inetd setup -- opening up a new port - what am I missing? Date: Wed, 7 Aug 2002 10:50:35 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <3D503B10.5080900@Salira.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal Andrew, Thanks for your suggestion. Thanks to you, my cvs server works. :) > Didn't you wonder when you were creating /etc/services why it was not > there in the first place! yep. I thought this might be the case, but "man inetd" seemed to suggest otherwise. Perhaps this information should be added to the manual. Or perhaps, better yet, the symbolic link you suggest should be included in the network tools install. Thanks again. - Matt -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf Of Andrew DeFaria Sent: Tuesday, August 06, 2002 5:10 PM To: cygwin AT cygwin DOT com Subject: Re: basic inetd setup -- opening up a new port - what am I missing? Matt Munz wrote: > Hi all, > > First off, cygwin is great. > > w2k, latest cygwin > > I installed the net utils, and read the following pages. > > http://www.adamswann.com/library/2001/Cygwin-Inetd.html > > http://cygwin.com/ml/cygwin/2001-11/msg00233.html > > Ultimately, I'm trying to get a cvs pserver going, but for right now, > I just want to open up a port to echo. Any port will do. Here's what I > tried. > > 1) Added the following line to /etc/inetd.conf > > cvspserver stream tcp nowait root /bin/echo echo hello > > 2) created /etc/services and added the following line to it > > cvspserver 2401/tcp Didn't you wonder when you were creating /etc/services why it was not there in the first place! Because I believe that is the clue. Cygwin doesn't use /etc/services! Instead it uses $SYSTEMROOT/system32/drivers/etc/Services. Perhaps the best solution would be: $ rm -f /etc/services $ ln -s $(cygpath -p $SYSTEMROOT/system32/drivers/etc) \ > /etc/services Then edit /etc/services to add the cvspserver line. > 3) started the server using cygrunsrv > > 4) "telnet localhost" -- this works > > 5) "telnet localhost 2401" -- get the following error > > Could not open a connection to host on port 2401 : Connect failed > > 6) view the log file /var/log/inetd.log -- it contains the following > > ADD : cvspserver proto=tcp, wait=0, user=root builtin=0 server=/bin/echo > FREE: cvspserver proto=tcp, wait=0, user=root builtin=0 server=/bin/echo > > Instead of "FREE..." I want to see "registered /bin/echo on 2401". > > What happened? Any ideas? Does this have to do with my services file? > Any help would be greatly appreciated. > > - Matt > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/