Package: git
Version: 1:1.7.10.4-1+wheezy1
Severity: normal

Hi!

Just noticed that git-daemon does not log the "Connection" lines any
longer after the upgrade from squeeze to wheezy that I did some months
ago, which makes the rest of the logging a bit useless.

I run git-daemon from inetutils-inetd, but I've not tested it as a
standalone server so I'm not sure if this might work there. I took a
look at the git history and see f9c87be6b42dd0f8b31a4bb8c6a44326879fdd1a
“daemon: get remote host address from root-process” as a possible
suspect.

Here's my old inetd entry:

,---
git     stream  tcp     nowait  nobody  /usr/bin/git    git daemon --inetd 
--verbose /git
`---

And the new one after the workaround I've managed to come up with:

,---
git     stream  tcp     nowait  nobody  /usr/local/bin/git-daemon-inetd 
git-daemon-inetd
`---

Need to set:

,--- /etc/default/inetutils-inetd ---
INETD_OPTS="--environment"
`---

And add the following wrapper:

,--- /usr/local/bin/git-daemon-inetd ---
#!/bin/sh

REMOTE_ADDR=$TCPREMOTEIP
REMOTE_PORT=$TCPREMOTEPORT
export REMOTE_ADDR REMOTE_PORT

exec git daemon --inetd --verbose /git
`---

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to