git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Challenge of setting up git server (repository). Please help!

From
MGMike Galbraith <efault@gmx.de>
Date
Nov 21, 2008, 07:22 UTC
Message-ID
<1227252144.4879.90.camel@marge.simson.net>
In-Reply-To
<546971.60895.qm@web37907.mail.mud.yahoo.com>
On Thu, 2008-11-20 at 16:39 -0800, Gary Yang wrote:
Show 23 quoted lines
> I killed xinetd. Restarted with sudo xinetd -stayalive -pidfile /var/run/xinetd.pid. 
> 
> I back to my private box. I did 
> 
> git pull git://git.mycompany.com/pub/git/u-boot.git HEAD
> 
> This command hangs for over half hour and is still hanging. Again, below is the content of /etc/xinetd.d/git-daemon. What I did wrong?
> 
> 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            = nobody
>         server          = /usr/local/libexec/git-core/git-daemon
>         server_args     = git-daemon --inetd --export-all --base-path=/pub/git
>         log_on_failure  += USERID
> }

The way I set it up was to create a user 'git' who is my central repository owner/manager. All repositories live in ~git.

service git
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = git
        group           = daemon
        server          = /usr/bin/git
        server_args     = daemon --inetd --export-all --user-path --reuseaddr --detach
        type            = UNLISTED
        port            = 9418
        log_on_failure  += USERID
}

marge:..kernel/linux-2.6.28 # git remote -v master git://localhost/~git/linux-2.6

>From host homer, with a hole poked in marge's firewall, works fine.
	-Mike
Previous: Gary Yang
Message 3 of 3 in “Re: Challenge of setting up git server (repository). Please help!”
  1. Gary YangNov 21, 2008
  2. Gary YangNov 21, 2008
  3. Mike GalbraithNov 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.