From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NnK50-0001qc-1m for garchives@archives.gentoo.org; Thu, 04 Mar 2010 23:03:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64327E0C9A; Thu, 4 Mar 2010 23:02:56 +0000 (UTC) Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.150]) by pigeon.gentoo.org (Postfix) with ESMTP id 24946E0CE6 for ; Thu, 4 Mar 2010 23:02:56 +0000 (UTC) Received: by ey-out-1920.google.com with SMTP id 5so417767eyb.40 for ; Thu, 04 Mar 2010 15:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=ruNFpPE6ye8ASnY1wtLaJA7o9GZZouj+5D1Fh5JK5Dw=; b=LDSIlVR6Y2LSO6czGXg8NqJfFCcIHaHiQlRjXLCixng1NZHGQt8zdzZrtrZeMf5jGf MH2Sh+QLri789t+3ri7bgEjvoFKPNqErSRDeVdfN0qQAd+xnnojxBOtShMuPHEaHVh/v mdgCGgZsRosIH5kqDFQxaBLCZ9mmAho2U/wTw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=q8bvQgq9tp+mooHdetg9S60mo/8H7c+YeLbfWKPf3grbTtsiSzBALrKR5YdqgLffd+ 19MSz3y0h7efULNuEUQ++TRuglBib4byrWGHSLMUEedbQ4+4PfN5e8Z4pxIehEVIv4p/ V/dH3FzNjqqI3/GV4ZXf0R/nn5XeW6IHRFVb8= Received: by 10.213.104.96 with SMTP id n32mr74645ebo.11.1267743775628; Thu, 04 Mar 2010 15:02:55 -0800 (PST) Received: from [192.168.1.3] (ppp-70-128-108-111.dsl.tulsok.swbell.net [70.128.108.111]) by mx.google.com with ESMTPS id 13sm657161ewy.9.2010.03.04.15.02.54 (version=SSLv3 cipher=RC4-MD5); Thu, 04 Mar 2010 15:02:54 -0800 (PST) Subject: [gentoo-user] Need help discovering what's using a port (for cvsd) From: Michael Sullivan To: gentoo-user Content-Type: text/plain Date: Thu, 04 Mar 2010 17:02:50 -0600 Message-Id: <1267743770.29481.31.camel@camille.espersunited.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2c24f49c-7e46-4215-8127-372f012644b8 X-Archives-Hash: 68c8a6f2b85bc1c8049776b300976a11 A few years ago I was working on a programming project. I installed a cvsd server on our server box and checked in/checked out the project whenever I felt like working on it (it would have gotten majorly screwed up if the only copy of the project lived on my personal workstation - hence using cvsd). Anyway, I got busy with other things and forgot about that particular programming project. At some point over the last few years, cvsd got unmerged. I remerged it today and have been trying to get it to work. I checked the repository directory and the files I need are still there. I can't get the server to start. I tried running /etc/init.d/cvsd start and it failed with the [!!] thing. I catted the script and saw that the executable for the cvsd server lives at /usr/sbin/cvsd, so I tried calling it directly: carter log # /usr/sbin/cvsd --debug cvsd: debug: reading config file (/etc/cvsd/cvsd.conf) cvsd: debug: done reading config file cvsd: debug: cvscmd: /bin/cvs cvsd: debug: cvsargs[0]: cvs cvsd: debug: cvsargs[1]: -f cvsd: debug: cvsargs[2]: --allow-root=/root cvsd: debug: cvsargs[3]: pserver cvsd: debug: cvsenv[0]: HOME=/ cvsd: debug: cvsenv[1]: PATH=/bin cvsd: debug: cvsenv[2]: SHELL=/bin/sh cvsd: debug: cvsenv[3]: TMPDIR=/tmp cvsd: debug: cvsenv[4]: CVSUMASK=027 cvsd: version 1.0.7 starting cvsd: debug: binding 0.0.0.0 2401 family=2 socktype=1 protocol=6 cvsd: listening on 0.0.0.0 2401 cvsd: debug: binding :: 2401 family=10 socktype=1 protocol=6 cvsd: bind() failed: Address already in use cvsd: version 1.0.7 bailing out carter log # netstat -anp | grep 2401 carter log # Nothing. I hope I'm using the netstat command correctly. I wrote in to a linux list years ago asking how to find out which process is using a port, and they said to grep `netstat -anp` for whatever port I was looking for. Anyway, when I ran netstat -anpv, I got some errors: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation?