Received: with ECARTIS (v1.0.0; list gopher); Fri, 28 May 2004 08:08:45 -0500 (CDT) Return-Path: X-Original-To: gopher@complete.org Delivered-To: gopher@complete.org Received: from localhost (localhost [127.0.0.1]) by glockenspiel.complete.org (Postfix) with ESMTP id 0C40D86; Fri, 28 May 2004 08:08:44 -0500 (CDT) Received: from glockenspiel.complete.org ([127.0.0.1]) by localhost (glockenspiel [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 19079-05; Fri, 28 May 2004 08:08:41 -0500 (CDT) Received: from gatekeeper.elmer.external.excelhustler.com (gatekeeper.excelhustler.com [68.99.114.105]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "gatekeeper.elmer.external.excelhustler.com", Issuer "excelhustler.com" (not verified)) by glockenspiel.complete.org (Postfix) with ESMTP id 5D85E76; Fri, 28 May 2004 08:08:41 -0500 (CDT) Received: from chatterbox.elmer.internal.excelhustler.com (unknown [192.168.0.12]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "chatterbox.elmer.internal.excelhustler.com", Issuer "excelhustler.com" (not verified)) by gatekeeper.elmer.external.excelhustler.com (Postfix) with ESMTP id E9772E01A1; Fri, 28 May 2004 08:08:37 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id 4F6845C067; Fri, 28 May 2004 08:08:37 -0500 (CDT) Received: from chatterbox.elmer.internal.excelhustler.com ([192.168.0.12]) by localhost (chatterbox [192.168.0.12]) (amavisd-new, port 10025) with ESMTP id 04037-02; Fri, 28 May 2004 08:08:34 -0500 (CDT) Received: from wile.internal.excelhustler.com (wile.internal.excelhustler.com [192.168.1.34]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id 15BAB5C063; Fri, 28 May 2004 08:08:32 -0500 (CDT) Received: by wile.internal.excelhustler.com (Postfix, from userid 1000) id 9582249057; Fri, 28 May 2004 08:08:32 -0500 (CDT) Date: Fri, 28 May 2004 08:08:32 -0500 From: John Goerzen To: gopher@complete.org Subject: [gopher] Re: Pygopherd and xinetd Message-ID: <20040528130832.GB9268@excelhustler.com> References: Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at excelhustler.com X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at complete.org Content-Transfer-Encoding: 8bit X-archive-position: 923 X-ecartis-version: Ecartis v1.0.0 Sender: gopher-bounce@complete.org Errors-to: gopher-bounce@complete.org X-original-sender: jgoerzen@complete.org Precedence: bulk Reply-to: gopher@complete.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: Gopher X-List-ID: Gopher List-subscribe: List-owner: List-post: List-archive: X-list: gopher On Fri, May 28, 2004 at 11:25:09AM +0200, Alessandro Selli wrote: > I finally set pygopherd_2.0.9 up and running on route-add.net, after > installing python2.3 side to side with the server's native python2.1. > I noticed that I cannot run it from xinetd, when I try to I get this error in > the log: PyGopherd does not have any support for running from inetd or xinetd at present. That support would probably be trivial to implement, but it's just not there right now. Let me explain some of the errors you're getting: > May 25 20:28:16 brillante pygopherd[25192]: Pygopherd starting, using > configuration file /etc/pygopherd/pygopherd.conf > May 25 20:28:17 brillante pygopherd[25192]: mimetypes initialized with files: > ['./conf/mime.types', '/etc/pygopherd/mime.types', '/etc/mime.types'] > May 25 20:28:18 brillante pygopherd[25192]: unknown-address [None/None] > EXCEPTION error: (48, 'Address already in use') That's because PyGopherd attempts to listen to a port that is already being listened on by xinetd. > May 25 20:28:18 brillante pygopherd[25192]: Application startup NOT successful! > > When I run it as a standalone server, it runs all right. When I wan to run > it as a xinetd-run service, I put "detach = yes" in Unfortunately, all detach does is tell PyGopherd to run as a Unix daemon -- that is, it forks itself off, continues listening for connections in the backgrouns, and returns immediately. > Oh, by the way, John, I noticed this typo in the pygopherd/README file: Oops :-) -- John