Bugzilla – Bug 461726
git xinetd config is invalid
Last modified: 2010-06-01 01:22:31 UTC
{20}root@svn:/srv/git/repositories# Dec 22 21:05:43 svn git-daemon: [8013] base-path '"/srv/git/repositories"' does not exist or is not a directory % git clone git://git.opensuse.org/people/dmacvicar/software-service.git Initialize software-service/.git Initialized empty Git repository in /tmp/git/software-service/.git/ fatal: read error (Connection reset by peer) [1] 12204 exit 128 git clone git://git.opensuse.org/people/dmacvicar/software-service.git This is due to server_args = daemon --syslog --detach --reuseaddr --user=git-daemon --group=nogroup --pid-file=/var/run/git-daemon.pid --base-path="/srv/git/repositories" in /etc/xinet.d/git.
Another problem is that git can't write its pid file. It's started with: --pid-file=/var/run/git-daemon.pid Dec 22 21:07:22 svn git-daemon: [8056] cannot open pid file /var/run/git-daemon.pid: Permission denied drwxr-xr-x 11 root root 704 2008-12-22 21:06 /var/run/
Looking at the build service, the package doesn't seem to be maintained by Takashi in fact. Petr, could you have a look please? There seem to be more problems in the setup. The next one I run into is that git doesn't work with the error message Dec 22 21:16:01 svn git-daemon: [8275] cannot drop privileges (after I configured the pid file location to a writable place) This blocks git.opensuse.org deployment at the moment.
The following configuration seems to work: service git { disable = yes socket_type = stream protocol = tcp wait = no user = git-daemon group = nogroup server = /usr/bin/git server_args = daemon --inetd --syslog --detach --reuseaddr --base-path=/srv/git type = UNLISTED port = 9418 log_on_failure += USERID }
Sorry for the delay; I have already fixed this within another bugreport. *** This bug has been marked as a duplicate of bug 495060 ***