git xinet service setup questions
Quoted 4 lines · Scott L Baker
This is probably a simple mistake on my part.. so apologies in advance..
I am trying to setup a git server and I have a few questions. My sys-admin (I do not have root access) setup an xinet service, e.g.
Addressing individuals for this kind of help requests is an inefficient way to resolve problems. I've tried to spawn git-daemon from inetd just as a test to make sure it works in the past, but I personally never have run xinetd.
You would have better luck finding somebody who have used xinetd to run git-daemon if you asked [email protected] mailing list, which you can send mails to without subscribing yourself.
Having said that...
Quoted 25 lines
Quoted 1 line
Quoted 1 line
cat
/etc/xinetd.d/git-daemon# default: off
# description: The git server offers access to git repositories service git service git
{
disable = no
type = UNLISTED
port = 9418
socket_type= stream
wait = no
user = nobody
server =/usr/intel/bin/git-daemon
server_args= --inetd --syslog --export-all --base-path=/git
log_on_failure+= USERID
}I then created a repo in /git/myrepo and tried to clone it..
Quoted 1 line
Quoted 1 line
git clone
git://plxc1214.pdx/git/myrepoInitialized empty Git repository in /users/myuser/junk/myrepo/.git/
fatal: The remote end hung up unexpectedly
fetch-pack from 'git://plxc1214.pdx/git/myrepo' failed.
Quoted 5 lines
Is the xinet service setup correctly?
What is the correct syntax for cloning from the local xinet service?Thanks,
Scott L Baker
The first thing you would want to try is to see if it is xinetd or git-daemon that is misconfigured. Try running the daemon without xinetd involved and see if you can access the repository. I think there is something in Documentation/howto/* on running the daemon.
The --base-path is used to hide the (often unsightly) leading prefix from the general public. If you are trying to fetch fromgit://plxc1214.pdx/git/myrepo, the --base-path I see in your configuration would mean the repository is at /git/git/myrepo directory on the filesystem. Is it the case? Does it help to try cloning from git://plxc1214.pdx/myrepo instead?