From: Horst von Brand Subject: Re: [PATCH, take 2] Add example xinetd(8) configuration to Documentation/everyday.txt Date: Sun, 04 Jun 2006 20:54:15 -0400 Message-ID: <200606050054.k550sFCC018490@laptop11.inf.utfsm.cl> References: Cc: Junio C Hamano , git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Jun 05 02:54:38 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fn3Ma-0004cX-Hv for gcvg-git@gmane.org; Mon, 05 Jun 2006 02:54:37 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932287AbWFEAy2 (ORCPT ); Sun, 4 Jun 2006 20:54:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932355AbWFEAy2 (ORCPT ); Sun, 4 Jun 2006 20:54:28 -0400 Received: from inti.inf.utfsm.cl ([200.1.21.155]:1759 "EHLO inti.inf.utfsm.cl") by vger.kernel.org with ESMTP id S932287AbWFEAy2 (ORCPT ); Sun, 4 Jun 2006 20:54:28 -0400 Received: from laptop11.inf.utfsm.cl (pc-192-170-104-200.cm.vtr.net [200.104.170.192] (may be forged)) by inti.inf.utfsm.cl (8.13.1/8.13.1) with ESMTP id k550sMsQ020128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Jun 2006 20:54:23 -0400 Received: from laptop11.inf.utfsm.cl (localhost.localdomain [127.0.0.1]) by laptop11.inf.utfsm.cl (8.13.6/8.13.6) with ESMTP id k550sFCC018490; Sun, 4 Jun 2006 20:54:18 -0400 To: "Dmitry V. Levin" In-Reply-To: Message from "Dmitry V. Levin" of "Mon, 05 Jun 2006 04:01:44 +0400." <20060605000144.GA12641@basalt.office.altlinux.org> X-Mailer: MH-E 7.4.2; nmh 1.1; XEmacs 21.4 (patch 19) X-Greylist: Delayed for 00:00:02 by milter-greylist-2.0.2 (inti.inf.utfsm.cl [200.1.21.155]); Sun, 04 Jun 2006 20:54:23 -0400 (CLT) X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on inti.inf.utfsm.cl X-Virus-Status: Clean Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Dmitry V. Levin wrote: > It is a bad advice to run git-daemon as root. Right, my bad. Fixed patch below. [Really dumb question: How do you separate comments, like this, from the commit itself? Here done with dashes.] -------- Add example xinetd(8) configuration to Documentation/everyday.txt Many Linux distributions use xinetd(8), not inetd(8). Give a sample configuration file. Signed-off-by: Horst H. von Brand --- Documentation/everyday.txt | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/Documentation/everyday.txt b/Documentation/everyday.txt index 2ad2d61..ffba543 100644 --- a/Documentation/everyday.txt +++ b/Documentation/everyday.txt @@ -377,6 +377,29 @@ git stream tcp nowait nobody \ + The actual configuration line should be on one line. +Run git-daemon to serve /pub/scm from xinetd.:: ++ +------------ +$ cat /etc/xinetd.d/git-daemon +# default: off +# description: The git server offers access to git repositories +service git +{ + disable = no + type = UNLISTED + port = 9418 + socket_type = stream + wait = no + user = root + server = /usr/bin/git-daemon + server_args = --inetd --syslog --export-all --base-path=/pub/scm + log_on_failure += USERID +} +------------ ++ +Check your xinetd(8) documentation and setup, this is from a Fedora system. +Others might be different. + Give push/pull only access to developers.:: + ------------ -- 1.3.3.g16a4