Skip to contentSkip to conversation

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

DISCUSSION Gary Yang 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Gary Yang

author
#0 lore raw

Kill the process, then

sudo xinetd -stayalive -pidfile /var/run/xinetd.pid

Please let me know if it is correct. Thanks.

Quoted 316 lines · Gary Yang

From: Gary Yang <[email protected]>
Subject: Re: Challenge of setting up git server (repository). Please help!
To: "J.H." <[email protected]>
Cc: "Deskin Miller" <[email protected]>, [email protected]
Date: Thursday, November 20, 2008, 4:12 PM
I am not system admin. How to restart it? Can I do this?

sudo xinetd -stayalive -pidfile /var/run/xinetd.pid

Below is the output of current running xinetd

ps -efww | grep xinetd
root 8874 1 0 Sep24 ? 00:00:00 xinetd
-stayalive -pidfile /var/run/xinetd.pid

Thanks.

--- On Thu, 11/20/08, J.H. <[email protected]>

Quoted 2 lines · wrote:

From: J.H. <[email protected]>
Subject: Re: Challenge of setting up git server

(repository). Please help!

Quoted 2 lines

To: [email protected]
Cc: "Deskin Miller"

<[email protected]>, [email protected]

Quoted 9 lines

Date: Thursday, November 20, 2008, 3:59 PM
Yes.

- John 'Warthog9' Hawley
Chief Kernel.org Administrator

Quoted 1 line · Gary Yang

Do I need to restart xinetd after I made changes

in

Quoted 8 lines

/etc/xinetd.d/git-daemon?

Quoted 3 lines

--- On Thu, 11/20/08, Gary Yang

Quoted 3 lines · <[email protected]> wrote:
Quoted 3 lines

From: Gary Yang <[email protected]>
Subject: Re: Challenge of setting up git

server

Quoted 7 lines

(repository). Please help!

Quoted 1 line
Quoted 1 line

To: "Deskin Miller"

<[email protected]>

Quoted 4 lines
Quoted 4 lines

Cc: [email protected]
Date: Thursday, November 20, 2008, 3:48 PM
I ran the command,"sudo
/usr/local/libexec/git-core/git-daemon

git-daemon

Quoted 13 lines
Quoted 1 line
Quoted 1 line

--export-all /pub/git &" at public

repository

Quoted 4 lines
Quoted 4 lines

machine.

At my private machine, I ran, git pull
git://svdcgit01.amcc.com/pub/git/u-boot.git

HEAD"

Quoted 6 lines
Quoted 6 lines

I got: "fatal: The remote end hung up
unexpectedly"

At the public repository server, I got
"'/pub/git/u-boot.git':

repository

Quoted 10 lines

not

Quoted 9 lines
Quoted 9 lines

exported." Any idea of this error?

ps -A | grep inetd
8874 ? 00:00:00 xinetd

It means it uses xinetd.

I copied git-daemon back to /etc/xinetd.d

and

Quoted 6 lines

added

Quoted 5 lines
Quoted 5 lines

git-daemon to the server_args. See below:

cat /etc/xinetd.d/git-daemon
# default: off
# description: The git server offers access

to

Quoted 14 lines

git

Quoted 4 lines
Quoted 4 lines

repositories
service git
{
disable = no

Quoted 8 lines
Quoted 8 lines
        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

Quoted 11 lines
Quoted 7 lines
Quoted 7 lines

--base-path=/pub/git

        log_on_failure  += USERID
}

I kill the daemon
"/usr/local/libexec/git-core/git-daemon

git-daemon

Quoted 3 lines
Quoted 3 lines

--export-all /pub/git &".

Back to my private box, and did git pull. I

got

Quoted 9 lines

Connection

Quoted 3 lines
Quoted 3 lines

refused again. what I did wrong?

git pull

git://svdcgit01.amcc.com/pub/git/u-boot.git HEAD

Quoted 1 line
Quoted 1 line

svdcgit01.amcc.com[0: 10.66.4.168]:

errno=Connection

Quoted 2 lines
Quoted 2 lines

refused
fatal: unable to connect a socket

(Connection

Quoted 11 lines

refused)

Quoted 8 lines
Quoted 8 lines

--- On Thu, 11/20/08, Deskin Miller

Quoted 1 line · <[email protected]> wrote:

From: Deskin Miller

<[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: Challenge of setting up

git

Quoted 6 lines

server

Quoted 2 lines
Quoted 2 lines

(repository). Please help!

Quoted 1 line

To: "Gary Yang"

<[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Cc: [email protected]
Date: Thursday, November 20, 2008, 3:08

PM

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Thu, Nov 20, 2008 at 02:43:30PM

-0800,

Quoted 3 lines

Gary Yang

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
Quoted 1 line

Many thanks for your explanation.

I

Quoted 6 lines

hope I

Quoted 2 lines
Quoted 2 lines

understand

Quoted 1 line

what you said. I deleted

/etc/xinetd.d/git-daemon.

Quoted 2 lines
Quoted 2 lines

Then, I

Quoted 1 line

tried to git pull. But, I got

connection

Quoted 3 lines

refused. git

Quoted 2 lines
Quoted 2 lines

uses

Quoted 1 line

port 9418. Should I request IT Admin to

open

Quoted 5 lines

the port

Quoted 4 lines
Quoted 4 lines

9418

Quoted 3 lines

for me?

You'll need port 9418 open, yes;

but

Quoted 4 lines

since

Quoted 3 lines
Quoted 3 lines

it's an

Quoted 2 lines

unprivileged port (1024 or
higher), you can use it as a regular

user

Quoted 3 lines

and

Quoted 2 lines
Quoted 2 lines

don't

Quoted 1 line

need IT intervention unless you have

some

Quoted 4 lines

firewall set

Quoted 3 lines
Quoted 3 lines

up

Quoted 2 lines

which they need to override for you.

Quoted 11 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

git pull

git://git.mycompany.com/pub/git/u-boot.git

Quoted 2 lines

HEAD

Quoted 1 line

git.mycompany.com[0: 10.66.4.168]:

errno=Connection

Quoted 2 lines

refused

Quoted 1 line

fatal: unable to connect a socket

(Connection

Quoted 3 lines
Quoted 3 lines

refused)

Quoted 2 lines

It's possible, and likely simpler,

to

Quoted 4 lines

use

Quoted 3 lines
Quoted 3 lines

git-daemon

Quoted 2 lines

directly, instead of
having it be managed by inetd;

especially

Quoted 12 lines

for initial

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

debugging, I'd recommend
getting that working before trying to

determine if

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

you're having issues with
inetd configuration: to do so, just run

git-daemon

Quoted 5 lines
Quoted 5 lines

with all

Quoted 4 lines

the same arguments
except for --inetd.

You said you deleted the xinetd config,

but

Quoted 7 lines

that's

Quoted 3 lines
Quoted 3 lines

only

Quoted 2 lines

relevant if your
machine actually uses inetd as its

super-server. You

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

should do 'ps -A | grep
inetd' (which will match either

inetd or

Quoted 4 lines

xinetd),

Quoted 3 lines
Quoted 3 lines

and

Quoted 2 lines

see which one is running.
If it's inetd, you should be all

set,

Quoted 4 lines

and the

Quoted 3 lines
Quoted 3 lines

issue

Quoted 2 lines

doesn't look like inetd
(assuming you sent it a signal to

reload its

Quoted 4 lines

config

Quoted 3 lines
Quoted 3 lines

file).

Quoted 2 lines

If on the other
hand xinetd is running, you need to use

the

Quoted 4 lines

xinetd

Quoted 3 lines
Quoted 3 lines

config

Quoted 2 lines

file, and fix the
server_args to look like the arguments

which

Quoted 4 lines

exist in

Quoted 3 lines
Quoted 3 lines

the

Quoted 2 lines

inetd file. Again,
you need to signal xinetd at this point

to

Quoted 4 lines

reload its

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

configuration.

Based on the linux kernel version

you're

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

reporting,

Quoted 2 lines

I'm guessing you have some
sort of Red Hat based system, which

uses

Quoted 5 lines

xinetd to the

Quoted 4 lines
Quoted 4 lines

best

Quoted 3 lines

of my knowledge.

Quoted 1 line

Another question, I got no output

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"netstat |

Quoted 1 line

grep 9418". It means no program

runs at

Quoted 5 lines

port 9418

Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line

the public repository machine. Is it

correct?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

netstat | grep 9418

netstat translates IP addresses to dns

names, and

Quoted 3 lines
Quoted 3 lines

ports to

Quoted 2 lines

service names by
default; so, given the line listed in

/etc/services,

Quoted 3 lines
Quoted 3 lines

this

Quoted 2 lines

will show
'0.0.0.0:git' or something.

Also,

Quoted 7 lines

it lists

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

established connections, not
listening sockets, by default. I'd

recommend

Quoted 3 lines
Quoted 3 lines

spending

Quoted 2 lines

some time with the man
page if you're going to use it to

debug

Quoted 12 lines

your

Quoted 10 lines
Quoted 10 lines

setup.

Quoted 2 lines

Deskin Miller

--
To unsubscribe from this list: send the line
"unsubscribe git" in
the body of a message to

[email protected]

Quoted 9 lines
Quoted 7 lines
Quoted 2 lines

More majordomo info at
http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line

"unsubscribe git" in

Quoted 1 line

the body of a message to

[email protected]

Quoted 9 lines
Quoted 1 line

More majordomo info at

http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

author
#1 lore raw

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
}

Quoted 390 lines · Gary Yang

From: Gary Yang <[email protected]>
Subject: Re: Challenge of setting up git server (repository). Please help!
To: "J.H." <[email protected]>
Cc: "Deskin Miller" <[email protected]>, [email protected]
Date: Thursday, November 20, 2008, 4:14 PM
Kill the process, then

sudo xinetd -stayalive -pidfile /var/run/xinetd.pid

Please let me know if it is correct. Thanks.

--- On Thu, 11/20/08, Gary Yang <[email protected]>

Quoted 2 lines · wrote:

From: Gary Yang <[email protected]>
Subject: Re: Challenge of setting up git server

(repository). Please help!

Quoted 2 lines

To: "J.H." <[email protected]>
Cc: "Deskin Miller"

<[email protected]>, [email protected]

Quoted 2 lines

Date: Thursday, November 20, 2008, 4:12 PM I am not system admin. How to restart it? Can I do

this?

Quoted 11 lines

sudo xinetd -stayalive -pidfile /var/run/xinetd.pid

Below is the output of current running xinetd

ps -efww | grep xinetd
root 8874 1 0 Sep24 ? 00:00:00 xinetd
-stayalive -pidfile /var/run/xinetd.pid

Quoted 4 lines

Thanks.

--- On Thu, 11/20/08, J.H.

<[email protected]>

Quoted 16 lines
Quoted 2 lines · wrote:

From: J.H. <[email protected]>
Subject: Re: Challenge of setting up git server

(repository). Please help!

Quoted 2 lines

To: [email protected]
Cc: "Deskin Miller"

<[email protected]>, [email protected]

Quoted 8 lines

Date: Thursday, November 20, 2008, 3:59 PM
Yes.

- John 'Warthog9' Hawley
Chief Kernel.org Administrator

On Thu, 2008-11-20 at 15:54 -0800, Gary Yang

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

Do I need to restart xinetd after I made

changes

Quoted 8 lines

in

Quoted 7 lines

/etc/xinetd.d/git-daemon?

Quoted 3 lines

--- On Thu, 11/20/08, Gary Yang

Quoted 2 lines · <[email protected]> wrote:
Quoted 2 lines

From: Gary Yang

<[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: Challenge of setting up

git

Quoted 6 lines

server

Quoted 5 lines

(repository). Please help!

Quoted 1 line
Quoted 1 line

To: "Deskin Miller"

<[email protected]>

Quoted 2 lines
Quoted 2 lines

Cc: [email protected]
Date: Thursday, November 20, 2008, 3:48

PM

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I ran the command,"sudo
/usr/local/libexec/git-core/git-daemon

git-daemon

Quoted 1 line
Quoted 1 line
Quoted 1 line

--export-all /pub/git &" at

public

Quoted 5 lines
Quoted 5 lines

repository

Quoted 4 lines
Quoted 4 lines

machine.

At my private machine, I ran, git pull

git://svdcgit01.amcc.com/pub/git/u-boot.git

Quoted 3 lines
Quoted 3 lines

HEAD"

Quoted 2 lines
Quoted 2 lines

I got: "fatal: The remote end hung

up

Quoted 15 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

unexpectedly"

At the public repository server, I got
"'/pub/git/u-boot.git':

repository

Quoted 10 lines

not

Quoted 9 lines
Quoted 9 lines

exported." Any idea of this error?

ps -A | grep inetd
8874 ? 00:00:00 xinetd

It means it uses xinetd.

I copied git-daemon back to

/etc/xinetd.d

Quoted 3 lines

and

Quoted 2 lines

added

Quoted 1 line
Quoted 1 line

git-daemon to the server_args. See

below:

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

cat /etc/xinetd.d/git-daemon
# default: off
# description: The git server offers

access

Quoted 14 lines

to

Quoted 13 lines

git

Quoted 12 lines
Quoted 12 lines

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

Quoted 8 lines
Quoted 8 lines

--export-all

Quoted 7 lines
Quoted 7 lines

--base-path=/pub/git

        log_on_failure  += USERID
}

I kill the daemon

"/usr/local/libexec/git-core/git-daemon

Quoted 4 lines
Quoted 4 lines

git-daemon

Quoted 3 lines
Quoted 3 lines

--export-all /pub/git &".

Back to my private box, and did git

pull. I

Quoted 4 lines

got

Quoted 3 lines

Connection

Quoted 2 lines
Quoted 2 lines

refused again. what I did wrong?

Quoted 18 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

git pull

git://svdcgit01.amcc.com/pub/git/u-boot.git HEAD

Quoted 1 line
Quoted 1 line

svdcgit01.amcc.com[0: 10.66.4.168]:

errno=Connection

Quoted 2 lines
Quoted 2 lines

refused
fatal: unable to connect a socket

(Connection

Quoted 11 lines

refused)

Quoted 8 lines
Quoted 8 lines

--- On Thu, 11/20/08, Deskin Miller

Quoted 1 line · <[email protected]> wrote:

From: Deskin Miller

<[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: Challenge of setting

up

Quoted 7 lines

git

Quoted 6 lines

server

Quoted 2 lines
Quoted 2 lines

(repository). Please help!

Quoted 1 line

To: "Gary Yang"

<[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Cc: [email protected]
Date: Thursday, November 20, 2008,

3:08

Quoted 6 lines

PM

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Thu, Nov 20, 2008 at 02:43:30PM

-0800,

Quoted 3 lines

Gary Yang

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:
Quoted 1 line

Many thanks for your

explanation.

Quoted 11 lines

I

Quoted 6 lines

hope I

Quoted 2 lines
Quoted 2 lines

understand

Quoted 1 line

what you said. I deleted

/etc/xinetd.d/git-daemon.

Quoted 2 lines
Quoted 2 lines

Then, I

Quoted 1 line

tried to git pull. But, I got

connection

Quoted 3 lines

refused. git

Quoted 2 lines
Quoted 2 lines

uses

Quoted 1 line

port 9418. Should I request IT

Admin to

Quoted 6 lines

open

Quoted 5 lines

the port

Quoted 4 lines
Quoted 4 lines

9418

Quoted 3 lines

for me?

You'll need port 9418 open,

yes;

Quoted 5 lines

but

Quoted 4 lines

since

Quoted 3 lines
Quoted 3 lines

it's an

Quoted 2 lines

unprivileged port (1024 or
higher), you can use it as a

regular

Quoted 4 lines

user

Quoted 3 lines

and

Quoted 2 lines
Quoted 2 lines

don't

Quoted 1 line

need IT intervention unless you

have

Quoted 4 lines

some

Quoted 3 lines

firewall set

Quoted 2 lines
Quoted 2 lines

up

Quoted 1 line

which they need to override for

you.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines

git pull

git://git.mycompany.com/pub/git/u-boot.git

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

HEAD

Quoted 1 line

git.mycompany.com[0:

10.66.4.168]:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

errno=Connection

Quoted 2 lines

refused

Quoted 1 line

fatal: unable to connect a

socket

Quoted 4 lines
Quoted 4 lines

(Connection

Quoted 3 lines
Quoted 3 lines

refused)

Quoted 2 lines

It's possible, and likely

simpler,

Quoted 9 lines

to

Quoted 4 lines

use

Quoted 3 lines
Quoted 3 lines

git-daemon

Quoted 2 lines

directly, instead of
having it be managed by inetd;

especially

Quoted 3 lines

for initial

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

debugging, I'd recommend
getting that working before trying

to

Quoted 3 lines
Quoted 3 lines

determine if

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

you're having issues with
inetd configuration: to do so,

just run

Quoted 6 lines
Quoted 6 lines

git-daemon

Quoted 5 lines
Quoted 5 lines

with all

Quoted 4 lines

the same arguments
except for --inetd.

You said you deleted the xinetd

config,

Quoted 8 lines

but

Quoted 7 lines

that's

Quoted 3 lines
Quoted 3 lines

only

Quoted 2 lines

relevant if your
machine actually uses inetd as its

super-server. You

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

should do 'ps -A | grep
inetd' (which will match

either

Quoted 5 lines

inetd or

Quoted 4 lines

xinetd),

Quoted 3 lines
Quoted 3 lines

and

Quoted 2 lines

see which one is running.
If it's inetd, you should be

all

Quoted 10 lines

set,

Quoted 4 lines

and the

Quoted 3 lines
Quoted 3 lines

issue

Quoted 2 lines

doesn't look like inetd
(assuming you sent it a signal to

reload its

Quoted 4 lines

config

Quoted 3 lines
Quoted 3 lines

file).

Quoted 2 lines

If on the other
hand xinetd is running, you need

to use

Quoted 5 lines

the

Quoted 4 lines

xinetd

Quoted 3 lines
Quoted 3 lines

config

Quoted 2 lines

file, and fix the
server_args to look like the

arguments

Quoted 5 lines

which

Quoted 4 lines

exist in

Quoted 3 lines
Quoted 3 lines

the

Quoted 2 lines

inetd file. Again,
you need to signal xinetd at this

point

Quoted 9 lines

to

Quoted 4 lines

reload its

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

configuration.

Based on the linux kernel version

you're

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

reporting,

Quoted 2 lines

I'm guessing you have some
sort of Red Hat based system,

which

Quoted 6 lines

uses

Quoted 5 lines

xinetd to the

Quoted 4 lines
Quoted 4 lines

best

Quoted 3 lines

of my knowledge.

Quoted 1 line

Another question, I got no

output

Quoted 3 lines

of

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"netstat |

Quoted 1 line

grep 9418". It means no

program

Quoted 4 lines

runs at

Quoted 3 lines

port 9418

Quoted 2 lines
Quoted 2 lines

at

Quoted 1 line

the public repository machine. Is

it

Quoted 5 lines
Quoted 5 lines

correct?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

netstat | grep 9418

netstat translates IP addresses to

dns

Quoted 4 lines
Quoted 4 lines

names, and

Quoted 3 lines
Quoted 3 lines

ports to

Quoted 2 lines

service names by
default; so, given the line listed

in

Quoted 4 lines
Quoted 4 lines

/etc/services,

Quoted 3 lines
Quoted 3 lines

this

Quoted 2 lines

will show
'0.0.0.0:git' or

something.

Quoted 4 lines

Also,

Quoted 3 lines

it lists

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

established connections, not
listening sockets, by default.

I'd

Quoted 4 lines
Quoted 4 lines

recommend

Quoted 3 lines
Quoted 3 lines

spending

Quoted 2 lines

some time with the man
page if you're going to use it

to

Quoted 10 lines

debug

Quoted 9 lines

your

Quoted 8 lines
Quoted 8 lines

setup.

Quoted 2 lines

Deskin Miller

--
To unsubscribe from this list: send the

line

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

"unsubscribe git" in
the body of a message to

[email protected]

Quoted 2 lines
Quoted 2 lines

More majordomo info at

http://vger.kernel.org/majordomo-info.html

Quoted 15 lines
Quoted 7 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line

"unsubscribe git" in

Quoted 1 line

the body of a message to

[email protected]

Quoted 7 lines
Quoted 1 line

More majordomo info at

http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line
"unsubscribe git" in
the body of a message to

[email protected]

Quoted 2 lines
Quoted 2 lines

More majordomo info at
http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 8 lines · Gary Yang

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?

Quoted 15 lines

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

Quoted 1 line

From host homer, with a hole poked in marge's firewall, works fine.

-Mike