Package: git-daemon-run
Version: 1:1.7.4.4-1
Followup-For: Bug #609405
This is easily fixed by adding --reuseaddr to the command line in
/etc/sv/git-daemon/run:
0 pip:~# diff -u /etc/sv/git-daemon/run{.orig,}
--- /etc/sv/git-daemon/run.orig 2011-05-19 00:55:46.000000000 -0400
+++ /etc/sv/git-daemon/run 2011-05-19 00:56:09.000000000 -0400
@@ -2,4 +2,4 @@
exec 2>&1
echo 'git-daemon starting.'
exec chpst -ugitdaemon \
- "$(git --exec-path)"/git-daemon --verbose --base-path=/var/cache
/var/cache/git
+ "$(git --exec-path)"/git-daemon --verbose --reuseaddr --base-path=/var/cache
/var/cache/git
1 pip:~#
I've tested and it works fine, even if outstanding connections are
being handled by previous instances of git.
Without this flag, if outstanding connections were bound to the daemon
on both IPv4 and IPv6, then /var/log/git-daemon/current fills with
messages like this as the process is restarted every second:
2011-05-19_04:53:51.90733 git-daemon starting.
2011-05-19_04:53:51.91214 fatal: unable to allocate any listen sockets on port
9418
2011-05-19_04:53:52.91799 git-daemon starting.
2011-05-19_04:53:52.92665 fatal: unable to allocate any listen sockets on port
9418
This would be a pretty useful fix; i know several people who were
frustrated by this intermittent-seeming problem.
--dkg
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-rc7-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages git-daemon-run depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii git 1:1.7.4.4-1 fast, scalable, distributed revisi
ii runit 2.1.1-6.2 system-wide service supervision
git-daemon-run recommends no packages.
git-daemon-run suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]